Guest User

Untitled

a guest
Jun 26th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.27 KB | None | 0 0
  1. class ActionView::LookupContext
  2.   module ActionView
  3.     def find(name, prefixes = [], partial = false, keys = [], options = {})
  4.       raise "MyPatch_find"
  5.     end
  6.   end
  7. end
  8.  
  9. self.class
  10. # => ActionView::LookupContext
  11.  
  12. self.find("foo")
  13. # => RuntimeError: "MyPatch_find"
Add Comment
Please, Sign In to add comment