Class: LogBook::Record
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- LogBook::Record
- Defined in:
- lib/log_book/record.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.collection_cache_key(collection = all, timestamp_column = :created_at) ⇒ Object
11 12 13 |
# File 'lib/log_book/record.rb', line 11 def self.collection_cache_key(collection = all, = :created_at) super(collection, ) end |
Instance Method Details
#changes_to_record? ⇒ Boolean
19 20 21 |
# File 'lib/log_book/record.rb', line 19 def changes_to_record? !(record_changes == {} && skip_if_empty_actions.include?(action)) end |
#subject_key ⇒ Object
15 16 17 |
# File 'lib/log_book/record.rb', line 15 def subject_key subject.class.table_name end |