yoolk/themes_on_rails

View on GitHub
lib/themes_on_rails/controller_additions.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ThemesOnRails
  module ControllerAdditions
    extend ActiveSupport::Concern

    module ClassMethods
      def theme(theme, options={})
        @_theme         = theme
        @_theme_options = options
        ThemesOnRails::ActionController.apply_theme(self, theme, options)
      end
    end
  end
end