Forum: Ruby on Rails Observer globals

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Keynan P. (Guest)
on 2007-02-06 22:29
I would like read access to ActionController's request and session
objects inside a model observer.

any ideas?
Peter E. (Guest)
on 2007-02-07 02:08
(Received via mailing list)
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. <removed_email_address@domain.invalid>:
Keynan P. (Guest)
on 2007-02-07 23:03
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 topic is locked and can not be replied to.