lib/avo/base_resource.rb in avo-2.11.2.pre.1 vs lib/avo/base_resource.rb in avo-2.11.2.pre.2
- old
+ new
@@ -276,13 +276,13 @@
if extra_params.present?
extra_params.each do |param_id|
# if it's a nested array, use the key
param_id = param_id.first.first if param_id.is_a? Hash
- next unless @model.respond_to? "#{param_id}="
+ next unless model.respond_to? "#{param_id}="
param_value = params[param_id]
- @model.send("#{param_id}=", param_value)
+ model.send("#{param_id}=", param_value)
end
end
model
end