1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/lib/action_view/template/handlers/raw.rb
2015-04-02 02:15:07 +03:00

11 lines
209 B
Ruby

module ActionView
module Template::Handlers
class Raw
def call(template)
escaped = template.source.gsub(':'.freeze, '\:'.freeze)
'%q:' + escaped + ':;'
end
end
end
end