Skip to content

Commit

Permalink
Further specify param type for Spree::Variant#options=
Browse files Browse the repository at this point in the history
  • Loading branch information
mamhoff committed Sep 27, 2022
1 parent b35432e commit fda2b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/models/spree/variant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def deleted?

# Assign given options hash to option values.
#
# @param options [Array] array of hashes with a name and value.
# @param options [Array<Hash{name: String, value: String}>] array of hashes with a name and value.
def options=(options = [])
options.each do |option|
set_option_value(option[:name], option[:value])
Expand Down

0 comments on commit fda2b92

Please sign in to comment.