Module: Reflex::Authlogic::Connectable
- Defined in:
- lib/reflex/authlogic/connectable.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/reflex/authlogic/connectable.rb', line 6 def self.included(base) base.send(:extend, ClassMethods) base.send(:include, InstanceMethods) base.validate :authenticate_oauth_session, :if => lambda { |account| !account.new_record? && account.send(:authenticating_via_oauth_server?) } end |