Skip to content

Commit

Permalink
Support Machinist 1 as well as Machinist 2
Browse files Browse the repository at this point in the history
  • Loading branch information
giddie authored and ianwhite committed Aug 12, 2010
1 parent 42e5f9d commit a71fbeb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/pickle/adapter.rb
Expand Up @@ -90,7 +90,11 @@ def initialize(klass, blueprint)
end

def create(attrs = {})
@klass.send(:make!, @blueprint, attrs)
if @klass.respond_to?('make!')
@klass.send(:make!, @blueprint, attrs)
else
@klass.send(:make, @blueprint, attrs)
end
end
end

Expand Down

0 comments on commit a71fbeb

Please sign in to comment.