Skip to content

Instantly share code, notes, and snippets.

@parolkar
Created April 1, 2009 06:32
Show Gist options
  • Save parolkar/88573 to your computer and use it in GitHub Desktop.
Save parolkar/88573 to your computer and use it in GitHub Desktop.
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