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 a158181 commit 9b61159
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/impressionist_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +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})
custom_params = associative_create_statement({:message => message,:lang=>lang}).merge({:lang=>lang})
custom_params[:params] = custom_params[:params].merge(extra)
custom_params[:lang] = lang
obj.impressions.create(custom_params)
end
else
Expand Down

0 comments on commit 9b61159

Please sign in to comment.