Class: Appstats::TestObject
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Appstats::TestObject
- Defined in:
- lib/appstats/test_object.rb
Instance Method Summary collapse
-
#to_s ⇒ Object
after_save :blah.
Instance Method Details
#to_s ⇒ Object
after_save :blah
def blah
puts "#{changed_attributes.inspect}"
end
15 16 17 18 |
# File 'lib/appstats/test_object.rb', line 15 def to_s return "NILL" if name.nil? "[#{name}]" end |