Top Level Namespace
Defined Under Namespace
Modules: VitaminedGems
Instance Method Summary collapse
-
#vitamine_gems!(&block) ⇒ Object
Setup method for the vitamined gems!! This pill should only be prescribed to a Rails application ;).
Instance Method Details
#vitamine_gems!(&block) ⇒ Object
Setup method for the vitamined gems!! This pill should only be prescribed to a Rails application ;)
82 83 84 85 86 87 88 89 90 91 |
# File 'lib/vitamined-gems.rb', line 82 def vitamine_gems!(&block) Rails::Configuration.class_eval do include VitaminedGems alias :gem_without_vitamins :gem alias :gem :gem_with_vitamins end VitaminedGems.initialize(&block) end |