Module: AuthlogicWind::Session::Methods
- Defined in:
- lib/authlogic_wind/session.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#build_callback_url ⇒ Object
TODO: why is this so hacky?.
- #credentials=(value) ⇒ Object
- #save(&block) ⇒ Object
Class Method Details
.included(klass) ⇒ Object
56 57 58 59 60 |
# File 'lib/authlogic_wind/session.rb', line 56 def self.included(klass) klass.class_eval do validate :validate_by_wind, :if => :authenticating_with_wind? end end |
Instance Method Details
#build_callback_url ⇒ Object
TODO: why is this so hacky?
75 76 77 |
# File 'lib/authlogic_wind/session.rb', line 75 def build_callback_url wind_controller.url_for(:controller => wind_controller.controller_name) + "/create" end |
#credentials=(value) ⇒ Object
62 63 64 65 66 67 |
# File 'lib/authlogic_wind/session.rb', line 62 def credentials=(value) super values = value.is_a?(Array) ? value : [value] hash = values.first.is_a?(Hash) ? values.first.with_indifferent_access : nil self.record = hash[:priority_record] if !hash.nil? && hash.key?(:priority_record) end |
#save(&block) ⇒ Object
69 70 71 72 |
# File 'lib/authlogic_wind/session.rb', line 69 def save(&block) block = nil if redirecting_to_wind_server? super(&block) end |