Module: AuthlogicFacebook::Session::Methods
- Defined in:
- lib/authlogic_facebook/session.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#save(&block) ⇒ Object
Clears out the block if we are authenticating with Facebook so that we can redirect without a DoubleRender error.
Class Method Details
.included(klass) ⇒ Object
72 73 74 75 76 |
# File 'lib/authlogic_facebook/session.rb', line 72 def self.included(klass) klass.class_eval do validate :validate_by_facebook, :if => :authenticating_with_facebook? end end |
Instance Method Details
#save(&block) ⇒ Object
Clears out the block if we are authenticating with Facebook so that we can redirect without a DoubleRender error.
80 81 82 83 |
# File 'lib/authlogic_facebook/session.rb', line 80 def save(&block) block = nil if redirecting_to_facebook? super(&block) end |