Sha256: 1e525a96d40c2108a739d8db3ab556f32b39b9335a808b2ab688007c36f47197
Contents?: true
Size: 537 Bytes
Versions: 13
Compression:
Stored size: 537 Bytes
Contents
ActiveRecord::Base.class_eval do class << self VALID_FIND_OPTIONS = VALID_FIND_OPTIONS + [:eager] def find_every_with_scope(options) if options.delete(:eager) find_every_without_scope(options) else scoped(options) end end alias_method_chain :find_every, :scope def find_initial_with_eager_loading(options) find_initial_without_eager_loading(options.merge(:eager => true)) end alias_method_chain :find_initial, :eager_loading end end
Version data entries
13 entries across 13 versions & 1 rubygems