impressionist icon indicating copy to clipboard operation
impressionist copied to clipboard

How to change IP before save?

Open sirchuck opened this issue 2 years ago • 1 comments

Because of some networking, impressionist can't pull the real IP. I have the IP I want to use, but I'm not sure how to overwrite impressionists incorrect ip.

How can I update the object before it pushes the impressionist data to the database?

Something like: impressionist( @ip_address => "123.123.123.0" )

sirchuck avatar Jun 01 '23 14:06 sirchuck

Also, can you count with specifications? Like I have a field action_name in the impressions database and I only want to count hits where that equals a value.

a.impressionist_count( :filter=>:ip_address, :action_name => "public", :start_date => sta.days.ago, :end_date => 1.minute.ago )

Unfortunately intuitively adding, :action_name => "my value" didn't only pull where action name = public.

sirchuck avatar Jun 01 '23 16:06 sirchuck