Skip to content

Commit 3721053

Browse files
author
Chris Thompson
committed
Provide a default to the second argument, as per Rails 3.x
1 parent 9887ede commit 3721053

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)