has_many_polymorphic 0.4.0 → 0.5.0

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.
@@ -105,7 +105,6 @@ module RussellEdge #:nodoc:
105
105
  exisiting_record = record.send("#{options[:through]}").find(:first,:conditions => conditions)
106
106
 
107
107
  if exisiting_record.nil?
108
- class_name = (reln_record.class.superclass == ActiveRecord::Base) ? reln_record.class.name : reln_record.class.superclass.name
109
108
  values_hash = {}
110
109
  values_hash["#{record.class.name.underscore}_id"] = record.id
111
110
  values_hash["#{name.to_s.singularize}_type"] = klass_name
@@ -1,3 +1,3 @@
1
1
  module HasManyPolymorphic
2
- VERSION = '0.4.0' unless defined?(::HasManyPolymorphic::VERSION)
2
+ VERSION = '0.5.0' unless defined?(::HasManyPolymorphic::VERSION)
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_many_polymorphic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 4
8
+ - 5
9
9
  - 0
10
- version: 0.4.0
10
+ version: 0.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Russell Holmes