mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Got logs working for users and bikes
Not my best work, but it works, need to add transactions, need to add edit/show actions
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
class ActsAsLoggable::BikeAction < ActiveRecord::Base
|
||||
#set_fixture_class :bike_actions => ActsAsLoggable::BikeActions
|
||||
attr_accessible :action
|
||||
|
||||
belongs_to :bike
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class Bike < ActiveRecord::Base
|
||||
acts_as_loggable
|
||||
attr_accessible :serial_number, :bike_brand_id, :bike_model_id, :color, :bike_style_id, :seat_tube_height,
|
||||
:top_tube_length, :wheel_size, :value, :bike_condition_id, :bike_status_id
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class User < ActiveRecord::Base
|
||||
acts_as_loggable
|
||||
# Include default devise modules. Others available are:
|
||||
# :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
|
||||
devise :database_authenticatable, :registerable,
|
||||
|
||||
Reference in New Issue
Block a user