Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RbTemplateHandler < ActionView::TemplateHandler
- include ActionView::TemplateHandlers::Compilable if defined?(ActionView::TemplateHandlers::Compilable)
- def compile(template)
- template.source
- end
- end
- ActionView::Template.register_template_handler(:rb, RbTemplateHandler)
Add Comment
Please, Sign In to add comment