Rails session

Skip to first unread message

Jaleel Ahmed

Mar 12, 2020, 3:08:14 AM3/12/20
to Ruby on Rails: Talk
I was wondering if it is possible to know if the rails session has been modified?

I am having a around filter, I make changes to the session object
I then yield to the action being performed, the action might not might not change the session object. In the after block I want to figure out if the session has been altered?


Ariel Juodziukynas

Mar 12, 2020, 8:55:54 AM3/12/20
to rubyonra...@googlegroups.com
I guess you have to use a before block to cache the initial value and then compare that to the final value in the after block

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7e3904d7-680c-485a-99fd-9c85455c2352%40googlegroups.com.
Reply all
Reply to author
0 new messages