Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module MyPatch
- def find(name, prefixes = [], partial = false, keys = [], options = {})
- raise "MyPatch_find"
- end
- end
- ActionView::LookupContext::ViewPaths.prepend MyPatch
- ActionView::LookupContext::ViewPaths.ancestors
- # => [MyPatch, ActionView::LookupContext::ViewPaths]
- self.class
- # => ActionView::LookupContext
- self.find("foo")
- # => DOES NOT RAISE "MyPatch_find"
Add Comment
Please, Sign In to add comment