Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Using kittenizer in Rails
module ActionView
class Template
def render(view, locals, buffer=nil, &block)
@source.gsub!(/$/, "にゃ")
instrument("!render_template") do
compile!(view)
view.send(method_name, locals, buffer, &block)
end
rescue => e
handle_render_error(view, e)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.