daily pastebin goal
20%
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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top