daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Apr 17th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class RbTemplateHandler < ActionView::TemplateHandler
  2.   include ActionView::TemplateHandlers::Compilable if defined?(ActionView::TemplateHandlers::Compilable)
  3.  
  4.   def compile(template)
  5.     template.source
  6.   end
  7.  
  8. end
  9.  
  10. ActionView::Template.register_template_handler(:rb, RbTemplateHandler)
RAW Paste Data
Top