Module: Rails3
- Defined in:
- lib/r3_plugin_toolbox.rb,
lib/r3_plugin_toolbox/macro.rb,
lib/r3_plugin_toolbox/engine.rb,
lib/r3_plugin_toolbox/railtie.rb,
lib/r3_plugin_toolbox/extender.rb,
lib/r3_plugin_toolbox/extender/util.rb,
lib/r3_plugin_toolbox/extender/load_handler.rb,
lib/r3_plugin_toolbox/rspec/matchers/be_extended_with.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.with_configuration(&block) ⇒ Object
2 3 4 5 6 |
# File 'lib/r3_plugin_toolbox/macro.rb', line 2 def self.with_configuration &block if block block.arity < 1 ? Rails.configuration.instance_eval(&block) : block.call(Rails.configuration) end end |