I am using rails 2.3.8 . I need to call a controllers action from a initializer. I found this snippet in rails 3 usin Proc
OmniAuth.config.on_failure = Proc.new do |env|
UserSessionsController.action(:omniauth_failure).call(env)
end
If i use this in Rails 2.3.8, it returns this error
undefined method `action' for UserSessionsController:Class.
It seems Rails 2.3.8 does not have "action" method. Is there any other way to call an action from initializer in Rails 2.3.x?