mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-02-28 16:53:23 -05:00
Adding some actsasloggable models (to be included by gem eventually)
This commit is contained in:
parent
575651a325
commit
351f303532
6
app/models/acts_as_loggable/bike_actions.rb
Normal file
6
app/models/acts_as_loggable/bike_actions.rb
Normal file
@ -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
Normal file
7
app/models/acts_as_loggable/log_actions.rb
Normal file
@ -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
Normal file
6
app/models/acts_as_loggable/transaction_actions.rb
Normal file
@ -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
Normal file
6
app/models/acts_as_loggable/user_actions.rb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
class ActsAsLoggable::UserActions < ActiveRecord::Base
|
||||||
|
set_fixture_class :bike_actions => ActsAsLoggable::UserActions
|
||||||
|
attr_accessible :action
|
||||||
|
|
||||||
|
belongs_to :bike
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user