Module: Authlogic::ActsAsAuthentic::MagicColumns::Methods
- Defined in:
- lib/stratagem/framework_extensions/models/adapters/authlogic/extensions.rb
Class Method Summary collapse
Class Method Details
.included(model) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/stratagem/framework_extensions/models/adapters/authlogic/extensions.rb', line 3 def self.included(model) # automatically activate the account model.class_eval do before_save { |record| record.active = true if record.methods_include?(:active) } end end |