Displaying 1 result from an estimated 1 matches for "add_expr_debug".
2010 Nov 20
0
Enabling preprocessing in Erubis makes views much faster
...me. Perhaps someone with a
deeper knowledge of Rails can say what would be needed to make that
work.
https://gist.github.com/707461
module ActionView
class Base
def get_binding;return binding;end
end
class Template
module Handlers
class Erubis < ::Erubis::Eruby
def add_expr_debug(src, code)
src << "@output_buffer.safe_concat(''" <<
escape_text(eval(code,ActionView::Base.new.get_binding).to_s) << "'');"
end
end
end
end
end
--
You received this message because you are subscribed to the Googl...