Thanks Jeffrey but I am aware of this. Like you said it inherits from
ActionController::Base but where should this file be kept?
For example if I reopen the class like:
module ActionController
class Base
def override_some_method
end
end
end
Where should the above code live? Like I said in my first post is that
I would create a file name action_controller_overrides.rb and place
that in config/initializers but I am unsure if that is the best place
to put it.
On Aug 22, 6:57 am, "Jeffrey L. Taylor" <[email protected]> wrote:
> Quoting BallaBall <[email protected]>:
>
> > Say I want to extend/override a method on something like
> > ActionController.
>
> > Where should I put this "monkeypatch"? Currently I am putting it in
> > config/initializers but Im thinking there is a better place.
>
> app/controllers/application_controller.rb
>
> It inherits from ActionController::Base and all other controllers inherit from
> it.
>
> HTH,
> Jeffrey
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---