mirror of https://github.com/fspc/BikeShed-1.git
Jason Denney
12 years ago
6 changed files with 28 additions and 12 deletions
@ -1,6 +1,10 @@ |
|||||
class ActsAsLoggable::BikeActions < ActiveRecord::Base |
class ActsAsLoggable::BikeAction < ActiveRecord::Base |
||||
#set_fixture_class :bike_actions => ActsAsLoggable::BikeActions |
#set_fixture_class :bike_actions => ActsAsLoggable::BikeActions |
||||
attr_accessible :action |
attr_accessible :action |
||||
|
|
||||
belongs_to :bike |
belongs_to :bike |
||||
|
|
||||
|
def to_s |
||||
|
self.action |
||||
|
end |
||||
end |
end |
@ -1,6 +1,10 @@ |
|||||
#this might be good for logging CRUD actions |
#this might be good for logging CRUD actions |
||||
class ActsAsLoggable::LogActions < ActiveRecord::Base |
class ActsAsLoggable::LogAction < ActiveRecord::Base |
||||
attr_accessible :action |
attr_accessible :action |
||||
|
|
||||
belongs_to :log |
belongs_to :log |
||||
|
|
||||
|
def to_s |
||||
|
self.action |
||||
|
end |
||||
end |
end |
@ -0,0 +1,9 @@ |
|||||
|
class ActsAsLoggable::TransactionAction < ActiveRecord::Base |
||||
|
attr_accessible :action |
||||
|
|
||||
|
belongs_to :bike |
||||
|
|
||||
|
def to_s |
||||
|
self.action |
||||
|
end |
||||
|
end |
@ -1,5 +0,0 @@ |
|||||
class ActsAsLoggable::TransactionActions < ActiveRecord::Base |
|
||||
attr_accessible :action |
|
||||
|
|
||||
belongs_to :bike |
|
||||
end |
|
@ -0,0 +1,9 @@ |
|||||
|
class ActsAsLoggable::UserAction < ActiveRecord::Base |
||||
|
attr_accessible :action |
||||
|
|
||||
|
belongs_to :bike |
||||
|
|
||||
|
def to_s |
||||
|
self.action |
||||
|
end |
||||
|
end |
@ -1,5 +0,0 @@ |
|||||
class ActsAsLoggable::UserActions < ActiveRecord::Base |
|
||||
attr_accessible :action |
|
||||
|
|
||||
belongs_to :bike |
|
||||
end |
|
Loading…
Reference in new issue