Skip to content

Commit 2a448fe

Browse files
author
Kyle d'Oliveira
committed
Merge pull request #3 from cliochris/fix_has_one
Provide a default to the second argument, as per Rails 3.x
2 parents e8077e7 + 3721053 commit 2a448fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/polymorphic_integer_type/extensions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def has_many(name, options = {}, &extension)
5454
super(name, options, &extension)
5555
end
5656

57-
def has_one(name, options)
57+
def has_one(name, options = {})
5858
remove_type_and_establish_mapping(name, options)
5959
super(name, options)
6060
end

0 commit comments

Comments
 (0)