Class: ActionView::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/malline/adapters/rails-2.1.rb

Instance Method Summary collapse

Instance Method Details

#orig_prepare!Object



87
# File 'lib/malline/adapters/rails-2.1.rb', line 87

alias_method :orig_prepare!, :prepare!

#orig_renderObject



80
# File 'lib/malline/adapters/rails-2.1.rb', line 80

alias_method :orig_render, :render

#prepare!(*args) ⇒ Object



88
89
90
91
# File 'lib/malline/adapters/rails-2.1.rb', line 88

def prepare! *args
	@prev_extension = @view.current_render_extension
	orig_prepare! *args
end

#render(*args) ⇒ Object



81
82
83
84
85
# File 'lib/malline/adapters/rails-2.1.rb', line 81

def render *args
	out = orig_render *args
	@view.current_render_extension = @prev_extension
	out
end