Module: AbstractController::Rendering
- Defined in:
- lib/theme_support/patches/abstractcontroller_ex.rb
Instance Method Summary collapse
- #render_to_string(*args, &block) ⇒ Object
-
#theme_support_render_to_string ⇒ Object
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.
Instance Method Details
#render_to_string(*args, &block) ⇒ Object
54 55 56 57 58 59 60 61 62 |
# File 'lib/theme_support/patches/abstractcontroller_ex.rb', line 54 def render_to_string(*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_to_string(*args, &block) end |
#theme_support_render_to_string ⇒ Object
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
52 |
# File 'lib/theme_support/patches/abstractcontroller_ex.rb', line 52 alias_method :theme_support_render_to_string, :render_to_string |