Module: AccessLoggable::ClassMethods
- Defined in:
- lib/access_loggable.rb
Instance Method Summary collapse
Instance Method Details
#access_loggable ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/access_loggable.rb', line 7 def access_loggable class_eval do has_many :access_logs, :as => :access_loggable def action!(title) access_logs.create(:action => title) end end end |