Skip to content

Instantly share code, notes, and snippets.

@t-cyrill
Created February 25, 2016 11:40
Show Gist options
  • Save t-cyrill/dc1297e41da9d2cab25d to your computer and use it in GitHub Desktop.
Save t-cyrill/dc1297e41da9d2cab25d to your computer and use it in GitHub Desktop.
class Dir
class << self
alias_method :orig, :[]
end
def self.[](pattern)
binding.pry
self.orig(pattern)
end
end
class ::ActionView::Resolver
class << self
alias_method :orig, :caching
end
def self.caching=(val)
binding.pry
orig(val)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment