Sha256: 02c9d6a4ee715ce3c2298a39fbfe72cc9cfb16a3996bb2bf68295772159be5ff

Contents?: true

Size: 373 Bytes

Versions: 16

Compression:

Stored size: 373 Bytes

Contents

module Appstats
  class TestObject < ActiveRecord::Base
    set_table_name "appstats_test_objects"
    acts_as_appstatsable
    acts_as_auditable

    attr_accessible :name, :last_name

    # after_save :blah
    # 
    # def blah
    #   puts "#{changed_attributes.inspect}"
    # end

    def to_s
      return "NILL" if name.nil?
      "[#{name}]"
    end
    
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
appstats-0.23.5 lib/appstats/test_object.rb
appstats-0.23.4 lib/appstats/test_object.rb
appstats-0.23.3 lib/appstats/test_object.rb
appstats-0.23.2 lib/appstats/test_object.rb
appstats-0.23.1 lib/appstats/test_object.rb
appstats-0.23.0 lib/appstats/test_object.rb
appstats-0.22.6 lib/appstats/test_object.rb
appstats-0.22.5 lib/appstats/test_object.rb
appstats-0.22.4 lib/appstats/test_object.rb
appstats-0.22.3 lib/appstats/test_object.rb
appstats-0.22.2 lib/appstats/test_object.rb
appstats-0.22.1 lib/appstats/test_object.rb
appstats-0.22.0 lib/appstats/test_object.rb
appstats-0.21.3 lib/appstats/test_object.rb
appstats-0.21.2 lib/appstats/test_object.rb
appstats-0.21.1 lib/appstats/test_object.rb