Browse Source

Adding some actsasloggable models (to be included by gem eventually)

denney-disable-on-select
Jason Denney 12 years ago
parent
commit
351f303532
  1. 6
      app/models/acts_as_loggable/bike_actions.rb
  2. 7
      app/models/acts_as_loggable/log_actions.rb
  3. 6
      app/models/acts_as_loggable/transaction_actions.rb
  4. 6
      app/models/acts_as_loggable/user_actions.rb

6
app/models/acts_as_loggable/bike_actions.rb

@ -0,0 +1,6 @@
class ActsAsLoggable::BikeActions < ActiveRecord::Base
set_fixture_class :bike_actions => ActsAsLoggable::BikeActions
attr_accessible :action
belongs_to :bike
end

7
app/models/acts_as_loggable/log_actions.rb

@ -0,0 +1,7 @@
#this might be good for logging CRUD actions
class ActsAsLoggable::LogActions < ActiveRecord::Base
set_fixture_class :log_actions => ActsAsLoggable::LogActions
attr_accessible :action
belongs_to :log
end

6
app/models/acts_as_loggable/transaction_actions.rb

@ -0,0 +1,6 @@
class ActsAsLoggable::TransactionActions < ActiveRecord::Base
set_fixture_class :bike_actions => ActsAsLoggable::TransactionActions
attr_accessible :action
belongs_to :bike
end

6
app/models/acts_as_loggable/user_actions.rb

@ -0,0 +1,6 @@
class ActsAsLoggable::UserActions < ActiveRecord::Base
set_fixture_class :bike_actions => ActsAsLoggable::UserActions
attr_accessible :action
belongs_to :bike
end
Loading…
Cancel
Save