kelredd-resourceful 0.8.2 → 0.8.3

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.
@@ -26,7 +26,7 @@ module Resourceful::Model::ActiverecordAssociations
26
26
  define_method(name) do |*args|
27
27
  reload = args.first || false
28
28
  if reload || (assoc_val = instance_variable_get("@#{clean_name}")).nil?
29
- klass = class_name.kind_of(::String) ? class_name.resourceful_constantize : class_name
29
+ klass = class_name.kind_of?(::String) ? class_name.resourceful_constantize : class_name
30
30
  raise ArgumentError, "has_many_resourceful :class_name '#{class_name}' is not defined" if klass.nil?
31
31
  unless klass.respond_to?(find_method_name)
32
32
  raise NotImplementedError, "has_many_resourceful expects #{klass} to implement a Findable method named '#{find_method_name}'"
@@ -63,7 +63,7 @@ module Resourceful::Model::ActiverecordAssociations
63
63
  define_method(name) do |*args|
64
64
  reload = args.first || false
65
65
  if reload || (assoc_val = instance_variable_get("@#{clean_name}")).nil?
66
- klass = if class_name.kind_of(::String)
66
+ klass = if class_name.kind_of?(::String)
67
67
  if polymorphic
68
68
  self.send("#{clean_name}_type")
69
69
  else
@@ -3,7 +3,7 @@ module Resourceful
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 8
6
- TINY = 2
6
+ TINY = 3
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 8
8
- - 2
9
- version: 0.8.2
8
+ - 3
9
+ version: 0.8.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kelly Redding