Created
April 1, 2009 06:32
-
-
Save parolkar/88573 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'singleton' | |
module ActiveSupport | |
# to correct it yourself (explained below). | |
module Inflector | |
extend self | |
class Inflections | |
include Singleton | |
def inflect | |
return 1 | |
end | |
end | |
end | |
end | |
ActiveSupport::Inflector::Inflections.instance.instance_eval <<EOT | |
def trial | |
puts "somtheing #{inflect}" #if you remove inflect it works | |
end | |
EOT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment