I would like to add my_method to the Symbol class, and be able to call my_method from app/helpers/application_helper.rb:
module ApplicationHelper
def my_helper
my_symbol.my_method
end
end
Where is the most appropriate place to put:
class Symbol
def my_method
<some code here>
end
end
?
I think that sticking your native class extensions in a new file in your
libfolder andrequire-ing them in yourenvironment.rbfile should do it.