Methods
Instance Public methods
===(object)
Link
Overwrite the default class equality method to provide support for association proxies.
allocate()
Link
generated_association_methods()
Link
inspect()
Link
Returns a string like 'Post(id:integer, title:string, body:text)'
# File activerecord/lib/active_record/core.rb, line 246 def inspect if self == Base super elsif abstract_class? "#{super}(abstract)" elsif !connected? "#{super} (call '#{super}.connection' to establish a connection)" elsif table_exists? attr_list = attribute_types.map { |name, type| "#{name}: #{type.type}" } * ", " "#{super}(#{attr_list})" else "#{super}(Table doesn't exist)" end end