brendan-entrails 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
data/entrails.gemspec
CHANGED
@@ -187,7 +187,7 @@ module Entrails::ActiveRecord::FindByAssociation
|
|
187
187
|
set_readonly_option!(find_options)
|
188
188
|
with_scope :find => find_options do
|
189
189
|
if action_type == :finder
|
190
|
-
finder =
|
190
|
+
finder = match.captures.first == 'all_by' ? :find_every : :find_initial
|
191
191
|
return __send__(finder, options_argument) if non_associations.empty?
|
192
192
|
return __send__("find#{'_all' if finder == :find_every}_by_#{non_associations.join('_and_')}".to_sym, *arguments)
|
193
193
|
else
|