Module: Archangel::ThemableConcern::ClassMethods

Defined in:
app/controllers/concerns/archangel/themable_concern.rb

Overview

ThemableConcern class methods

Instance Method Summary collapse

Instance Method Details

#theme(theme, options = {}) ⇒ Object

Converts the object into textual markup given a specific format.

Parameters:

  • theme (String, Symbol, Proc)

    the theme

  • options (Hash) (defaults to: {})

    the theme options

Returns:

  • (Object)

    the theme object



19
20
21
22
23
24
# File 'app/controllers/concerns/archangel/themable_concern.rb', line 19

def theme(theme, options = {})
  @_theme = theme
  @_theme_options = options

  Archangel::Theme::ThemableController.apply_theme(self, theme, options)
end