Module: Primer::Lazyness
- Defined in:
- lib/primer/lazyness.rb
Defined Under Namespace
Modules: Macros Classes: Proxy
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/primer/lazyness.rb', line 4 def self.included(klass) klass.extend(Macros) if defined?(ActiveRecord) and klass < ActiveRecord::Base klass.lazy_patch(:find, :all, :first, :last, :method_missing) end end |