def update_current_theme(name, options = {})
      self.class.renders_theme(name, options)
      Rails.application.config.theme.name = current_theme_name
      Rails.application.config.theme.layout = current_theme_layout
      ShinyThemes::Engine.theme_config.save unless options[:dont_save]
      self.class.theme # return current theme object
    end
def update_current_theme(name, options = {})
      self.class.renders_theme(name, options)
      Rails.application.config.theme.name = current_theme_name
      Rails.application.config.theme.layout = current_theme_layout
      ShinyThemes::Engine.theme_config.save unless options[:dont_save]
      self.class.theme # return current theme object
    end
Update the current theme for the controller and optionally save
 @param name [String] The name of the new theme
 @param options [Hash] Options hash
 @option options [String] :layout ('application') Default layout for theme
 @option options [Boolean] :dont_save (false) Dont save the update to the theme.yml config
 @return (Theme) the theme for the controller