Observer globals

I would like read access to ActionController’s request and session
objects inside a model observer.

any ideas?

it’s called a model observer, not view or controller observer…

you should rethink your application structure…

what problem do you want to solve??

2007/2/6, Keynan P. [email protected]:

I have an audit trail observer that updates table audit trail when ever
an asset is altered. I want to record the user_id and remote ip in the
audit trail table.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs