Module: Platanus::ActivableExplicit
- Defined in:
- lib/platanus/activable.rb
Overview
Same as Activable but defines an ‘alive’ scope and no default scope.
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
84 85 86 87 88 89 |
# File 'lib/platanus/activable.rb', line 84 def self.included(base) base.define_callbacks :remove base.attr_protected :removed_at base.send(:scope, 'alive', base.where(:removed_at => nil)) base.extend Platanus::Activable::ClassMethods end |