Class: Appstats::TestObject

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/appstats/test_object.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject

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