Module: AbstractController::Rendering

Defined in:
lib/theme_support/patches/abstractcontroller_ex.rb

Instance Method Summary collapse

Instance Method Details

#render(*args, &block) ⇒ Object



39
40
41
42
43
44
45
46
47
# File 'lib/theme_support/patches/abstractcontroller_ex.rb', line 39

def render(*args, &block)
  theme = current_theme
  if theme
    theme = ActionView::Base.process_view_paths(File.join("themes", theme, "views"))
    prepend_view_path(theme)
  end

  theme_support_render(*args, &block)
end

#theme_support_renderObject



37
# File 'lib/theme_support/patches/abstractcontroller_ex.rb', line 37

alias_method :theme_support_render, :render