Module: ActionController::DisguiseApplication
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/disguise/controllers/disguise_application.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#current_theme ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/disguise/controllers/disguise_application.rb', line 14 def current_theme if DomainTheme.use_domain_themes? @theme ||= DomainTheme.get_theme(request) else @theme ||= Theme.first end end |