Module: UrlSession::Controller
- Defined in:
- lib/url_session/controller.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
2 3 4 |
# File 'lib/url_session/controller.rb', line 2 def self.included(base) base.send :before_filter, :set_session_id end |
Instance Method Details
#reset_session ⇒ Object
15 16 17 18 |
# File 'lib/url_session/controller.rb', line 15 def reset_session super set_session_id end |
#url_options ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/url_session/controller.rb', line 6 def = Rails.application.config. key = [:key] || '_session_id' param = [:param] || 'session_id' = ![:cookie_enabled] || [key].blank? session_id = request.[:id] { param.to_sym => .presence && session_id }.merge super end |