From b3837ba725a8403ad5dcb22e8edb748a6a7ac3a0 Mon Sep 17 00:00:00 2001 From: Scott Merritt Date: Fri, 4 Mar 2022 00:14:44 -0800 Subject: [PATCH] added lang field to impressionist --- app/controllers/impressionist_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/impressionist_controller.rb b/app/controllers/impressionist_controller.rb index 5383588..2c3f2be 100644 --- a/app/controllers/impressionist_controller.rb +++ b/app/controllers/impressionist_controller.rb @@ -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