Module: ActiverecordHoarder::Core
- Defined in:
- lib/activerecord_hoarder/core.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
2 3 4 5 6 |
# File 'lib/activerecord_hoarder/core.rb', line 2 def self.included(base) raise 'created_at accessor needed' if !base.column_names.include?("created_at") raise 'deleted_at accessor needed' if !base.column_names.include?("deleted_at") base.extend ClassMethods end |