Method: Saml::Rails::ControllerHelper#current_store
- Defined in:
- lib/saml/rails/controller_helper.rb
#current_store(store_or_symbol = nil) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/saml/rails/controller_helper.rb', line 17 def current_store(store_or_symbol = nil) case store_or_symbol when Symbol before_action { Saml.current_store = store_or_symbol } else before_action do Saml::Config.register_store klass.name.underscore, klass_or_symbol Saml.current_store = klass.name.underscore end end end |