Module: ActionView::Renderer
- Defined in:
- lib/malline/adapters/rails-2.1.rb
Instance Method Summary collapse
Instance Method Details
#orig_prepare! ⇒ Object
72 |
# File 'lib/malline/adapters/rails-2.1.rb', line 72 alias_method :orig_prepare!, :prepare! |
#orig_render ⇒ Object
65 |
# File 'lib/malline/adapters/rails-2.1.rb', line 65 alias_method :orig_render, :render |
#prepare!(*args) ⇒ Object
73 74 75 76 |
# File 'lib/malline/adapters/rails-2.1.rb', line 73 def prepare! *args @prev_extension = @view.current_render_extension orig_prepare! *args end |
#render(*args) ⇒ Object
66 67 68 69 70 |
# File 'lib/malline/adapters/rails-2.1.rb', line 66 def render *args out = orig_render *args @view.current_render_extension = @prev_extension out end |