1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 16:53:23 -05:00

Rename models to singular

This commit is contained in:
Jason Denney 2012-12-09 16:26:12 -05:00
parent 4e6abf4a52
commit b4f2abf05f
6 changed files with 28 additions and 12 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,9 @@
class ActsAsLoggable::TransactionAction < ActiveRecord::Base
attr_accessible :action
belongs_to :bike
def to_s
self.action
end
end

View File

@ -1,5 +0,0 @@
class ActsAsLoggable::TransactionActions < ActiveRecord::Base
attr_accessible :action
belongs_to :bike
end

View File

@ -0,0 +1,9 @@
class ActsAsLoggable::UserAction < ActiveRecord::Base
attr_accessible :action
belongs_to :bike
def to_s
self.action
end
end

View File

@ -1,5 +0,0 @@
class ActsAsLoggable::UserActions < ActiveRecord::Base
attr_accessible :action
belongs_to :bike
end