Class: Pwb::CssController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Pwb::CssController
- Defined in:
- app/controllers/pwb/css_controller.rb
Instance Method Summary collapse
-
#custom_css ⇒ Object
renders a stylesheet with client configured variables - spt 2017 - currently only used by devise layout other layout directly render partial via helper method.
Instance Method Details
#custom_css ⇒ Object
renders a stylesheet with client configured variables
-
spt 2017 - currently only used by devise layout
other layout directly render partial via helper method
6 7 8 9 10 11 12 |
# File 'app/controllers/pwb/css_controller.rb', line 6 def custom_css @bg_style_vars = [] @text_color_style_vars = [] @current_website = Website.unique_instance theme_name = params[:theme_name] || default render "pwb/custom_css/#{theme_name}", formats: :css end |