mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Still a work in progress
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
class ActsAsLoggable::BikeAction < ActiveRecord::Base
|
||||
attr_accessible :action
|
||||
|
||||
belongs_to :bike
|
||||
has_many :logs
|
||||
|
||||
def to_s
|
||||
self.action
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
class ActsAsLoggable::LogAction < ActiveRecord::Base
|
||||
attr_accessible :action
|
||||
|
||||
belongs_to :log
|
||||
has_many :logs
|
||||
|
||||
def to_s
|
||||
self.action
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
class ActsAsLoggable::UserAction < ActiveRecord::Base
|
||||
attr_accessible :action
|
||||
|
||||
belongs_to :bike
|
||||
has_many :logs
|
||||
|
||||
def to_s
|
||||
self.action
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user