Browse Source

Rename models to singular

denney-disable-on-select
Jason Denney 12 years ago
parent
commit
b4f2abf05f
  1. 6
      app/models/acts_as_loggable/bike_action.rb
  2. 6
      app/models/acts_as_loggable/log_action.rb
  3. 9
      app/models/acts_as_loggable/transaction_action.rb
  4. 5
      app/models/acts_as_loggable/transaction_actions.rb
  5. 9
      app/models/acts_as_loggable/user_action.rb
  6. 5
      app/models/acts_as_loggable/user_actions.rb

6
app/models/acts_as_loggable/bike_actions.rb → app/models/acts_as_loggable/bike_action.rb

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

6
app/models/acts_as_loggable/log_actions.rb → app/models/acts_as_loggable/log_action.rb

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

9
app/models/acts_as_loggable/transaction_action.rb

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

5
app/models/acts_as_loggable/transaction_actions.rb

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

9
app/models/acts_as_loggable/user_action.rb

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

5
app/models/acts_as_loggable/user_actions.rb

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