Redefine "base" classes in rails

Hello All,

I have a little question on rails.
For instance, if I need to provide additional method to the Object
class (method that I could use in all the classes then), where can I
put this code:

class Object
def my_new_method_1

def my_new_method_2


I mean… can I add this in my_controlller.rb after the controller
class definition ? Can I put it anywhere next to a class definition?

Thanks a lot,

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