anaf_habtm 0.0.94 → 0.0.95

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.
data/anaf_habtm.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{anaf_habtm}
8
- s.version = "0.0.94"
8
+ s.version = "0.0.95"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tyler Gannon"]
@@ -26,7 +26,7 @@ module AnafHabtm
26
26
 
27
27
  def anaf_habtm(association, options={})
28
28
  ar_opts = options[:ar_options] ||= {}
29
- klass = ar_opts[:class_name] ||= association.singularize.camelize
29
+ klass = ar_opts[:class_name] ||= association.to_s.singularize.camelize
30
30
  class_eval do
31
31
  has_and_belongs_to_many association.to_sym, ar_opts
32
32
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anaf_habtm
3
3
  version: !ruby/object:Gem::Version
4
- hash: 163
4
+ hash: 161
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 94
10
- version: 0.0.94
9
+ - 95
10
+ version: 0.0.95
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tyler Gannon