Permalink
Browse files

Fix bug when adding associated objects when using Sequel

Bump version to 1.1.1
  • Loading branch information...
1 parent 63025e7 commit e0fdcafb6aa5025ffe0d6dc53f7d2f62563e332a @jeremyevans committed Oct 14, 2008
Showing with 2 additions and 2 deletions.
  1. +1 −1 fixture_dependencies.gemspec
  2. +1 −1 lib/fixture_dependencies/sequel.rb
@@ -1,6 +1,6 @@
spec = Gem::Specification.new do |s|
s.name = "fixture_dependencies"
- s.version = "1.1.0"
+ s.version = "1.1.1"
s.author = "Jeremy Evans"
s.email = "code@jeremyevans.net"
s.platform = Gem::Platform::RUBY
@@ -2,7 +2,7 @@ class << FixtureDependencies
private
def add_associated_object_S(reflection, attr, object, assoc)
- object.send("add_#{attr.singularize}", assoc) unless object.send(attr).include?(assoc)
+ object.send("add_#{attr.to_s.singularize}", assoc) unless object.send(attr).include?(assoc)
end
def model_find_S(model, pk)

0 comments on commit e0fdcaf

Please sign in to comment.