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
El jue., 12 mar. 2020 a las 4:08, Jaleel Ahmed (<jaleelahmed1...@gmail.com>) escribió: > 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? > > Thanks, > Jaleel > > -- > 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-talk+unsubscr...@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 > <https://groups.google.com/d/msgid/rubyonrails-talk/7e3904d7-680c-485a-99fd-9c85455c2352%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcD6GQvLzufr2LYntyEc3ikjUrinoApJ2qno4HgEUhj3xQ%40mail.gmail.com.