Class: PasteERBHelper
- Inherits:
-
ERB
- Object
- ERB
- PasteERBHelper
- Includes:
- ActionView::Helpers
- Defined in:
- lib/paste/erb_renderer.rb
Overview
This needs to be outside of the module because we don’t want to force templates to always do ::Rails
Instance Method Summary collapse
Instance Method Details
#config ⇒ Object
52 53 54 |
# File 'lib/paste/erb_renderer.rb', line 52 def config Rails.application.config.action_controller if defined?(Rails) end |
#controller ⇒ Object
60 61 62 |
# File 'lib/paste/erb_renderer.rb', line 60 def controller nil end |
#result(*args) ⇒ Object
56 57 58 |
# File 'lib/paste/erb_renderer.rb', line 56 def result *args super binding end |