Skip to content

Commit

Permalink
added lang field to impressionist
Browse files Browse the repository at this point in the history
  • Loading branch information
scottcmerritt committed Mar 4, 2022
1 parent 9b61159 commit da95289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/impressionist_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def impressionist(obj,message=nil,opts={}, extra={}, lang:I18n.locale)
if obj.respond_to?("impressionable?")
if unique_instance?(obj, opts[:unique])

custom_params = associative_create_statement({:message => message,:lang=>lang}).merge({:lang=>lang})
custom_params[:params] = custom_params[:params].merge(extra)
custom_params = associative_create_statement({:message => message,:lang=>lang})
custom_params[:params] = custom_params[:params].merge(extra).merge({lang:lang})
obj.impressions.create(custom_params)
end
else
Expand Down

0 comments on commit da95289

Please sign in to comment.