Module: RenderKit::ImplicitRenderMonkeyPatch
- Defined in:
- lib/render_kit/implicit_render_monkey_patch.rb
Instance Method Summary collapse
Instance Method Details
#default_render ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/render_kit/implicit_render_monkey_patch.rb', line 7 def default_render if renderable = find_renderable(action_name.to_s, _prefixes) render(renderable.new) else super end end |
#find_renderable(action_name, prefixes) ⇒ Object
15 16 17 |
# File 'lib/render_kit/implicit_render_monkey_patch.rb', line 15 def find_renderable(action_name, prefixes) RenderKit::RenderableRegistry.get_renderables([prefixes, action_name].join("_"), controller=true) end |