Skip to content

Commit 37e4a75

Browse files
author
Kyle d'Oliveira
committed
Add the options as well in the has_many
1 parent 085b54e commit 37e4a75

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
@@ -55,7 +55,7 @@ def remove_type_and_establish_mapping(name, options)
5555
def has_many(name, scope = nil, options = {}, &extension)
5656
options = scope if scope.kind_of? Hash
5757
remove_type_and_establish_mapping(name, options)
58-
super(name, options.delete(:scope), &extension)
58+
super(name, options.delete(:scope), options &extension)
5959
end
6060

6161
def has_one(name, scope = nil, options = {})

0 commit comments

Comments
 (0)