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.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{entrails}
3
- s.version = "1.0.7"
3
+ s.version = "1.0.8"
4
4
 
5
5
  s.specification_version = 2 if s.respond_to? :specification_version=
6
6
 
@@ -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 = determine_finder(match)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brendan-entrails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brendan Baldwin