Module: UtilityScopes::Eager

Defined in:
lib/utility_scopes/eager.rb

Class Method Summary collapse

Class Method Details

.included(within) ⇒ Object



4
5
6
7
8
# File 'lib/utility_scopes/eager.rb', line 4

def self.included(within)
  within.class_eval do
    named_scope :with, lambda { |*associations| { :include => associations } }
  end
end