Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change IP before save? #309

Open
sirchuck opened this issue Jun 1, 2023 · 1 comment
Open

How to change IP before save? #309

sirchuck opened this issue Jun 1, 2023 · 1 comment

Comments

@sirchuck
Copy link

sirchuck commented Jun 1, 2023

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
Copy link
Author

sirchuck commented Jun 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant