Module: Reflex::Authlogic::Connectable::InstanceMethods
- Includes:
- AuthenticationProcess
- Defined in:
- lib/reflex/authlogic/connectable.rb
Instance Method Summary collapse
Instance Method Details
#save(perform_validation = true) {|result| ... } ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/reflex/authlogic/connectable.rb', line 20 def save(perform_validation = true, &block) if perform_validation && block_given? && connecting_to_provider? # Save attributes in session so we can use them again after authentication reflex_controller.session[:authlogic_reflex_attributes] = attributes.reject!{|k, v| v.blank?} # Redirect to the OAuth Server, but set a callback location so we return here redirect_to_oauth_server(:callback_location => reflex_controller.request.path) return false end result = super yield(result) if block_given? result end |