kelredd-resourceful 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,10 +21,8 @@ module Resourceful
21
21
  raise NotImplementedError, "has_many expects #{klass} to be findable (ie mixin the Findable helper)"
22
22
  end
23
23
  fk = config.delete(:foreign_key) || "#{self.class.name.downcase.to_s.gsub(/^.*::/, '')}_id"
24
- unless config[fk]
25
- fk_method = config.delete(:foreign_key_method) || 'id'
26
- config[fk] = self.send(fk_method)
27
- end
24
+ fk_method = config.delete(:foreign_key_method) || 'id'
25
+ config[fk] = self.send(fk_method)
28
26
  instance_variable_get("@#{clean_name}") || \
29
27
  instance_variable_set("@#{clean_name}", \
30
28
  klass.to_s.constantize.find(:all, config, force)
@@ -3,7 +3,7 @@ module Resourceful
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 6
6
- TINY = 3
6
+ TINY = 4
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kelredd-resourceful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding