diff --git a/app/models/acts_as_loggable/bike_actions.rb b/app/models/acts_as_loggable/bike_action.rb similarity index 57% rename from app/models/acts_as_loggable/bike_actions.rb rename to app/models/acts_as_loggable/bike_action.rb index 5b3eb18..696abaa 100644 --- a/app/models/acts_as_loggable/bike_actions.rb +++ b/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 attr_accessible :action belongs_to :bike + + def to_s + self.action + end end diff --git a/app/models/acts_as_loggable/log_actions.rb b/app/models/acts_as_loggable/log_action.rb similarity index 52% rename from app/models/acts_as_loggable/log_actions.rb rename to app/models/acts_as_loggable/log_action.rb index 0522a16..e07fabb 100644 --- a/app/models/acts_as_loggable/log_actions.rb +++ b/app/models/acts_as_loggable/log_action.rb @@ -1,6 +1,10 @@ #this might be good for logging CRUD actions -class ActsAsLoggable::LogActions < ActiveRecord::Base +class ActsAsLoggable::LogAction < ActiveRecord::Base attr_accessible :action belongs_to :log + + def to_s + self.action + end end diff --git a/app/models/acts_as_loggable/transaction_action.rb b/app/models/acts_as_loggable/transaction_action.rb new file mode 100644 index 0000000..f4a2307 --- /dev/null +++ b/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 diff --git a/app/models/acts_as_loggable/transaction_actions.rb b/app/models/acts_as_loggable/transaction_actions.rb deleted file mode 100644 index 3b84085..0000000 --- a/app/models/acts_as_loggable/transaction_actions.rb +++ /dev/null @@ -1,5 +0,0 @@ -class ActsAsLoggable::TransactionActions < ActiveRecord::Base - attr_accessible :action - - belongs_to :bike -end diff --git a/app/models/acts_as_loggable/user_action.rb b/app/models/acts_as_loggable/user_action.rb new file mode 100644 index 0000000..503fe9d --- /dev/null +++ b/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 diff --git a/app/models/acts_as_loggable/user_actions.rb b/app/models/acts_as_loggable/user_actions.rb deleted file mode 100644 index 49e1c3d..0000000 --- a/app/models/acts_as_loggable/user_actions.rb +++ /dev/null @@ -1,5 +0,0 @@ -class ActsAsLoggable::UserActions < ActiveRecord::Base - attr_accessible :action - - belongs_to :bike -end