Module: Zeal
- Defined in:
- lib/zeal.rb,
lib/zeal/version.rb
Defined Under Namespace
Classes: EagerLoadError
Constant Summary collapse
- VERSION =
"0.0.2"
Instance Method Summary collapse
Instance Method Details
#eager_load(*args) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/zeal.rb', line 8 def eager_load(collection, *args) if collection.length > 0 ActiveRecord::Associations::Preloader.new(collection, args).run end collection end |