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

0 comments on commit b3837ba

Please sign in to comment.