-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
Current syntax is:
Mongoid.configure do |config|
config.some_method ...
end
We should be able to inspect the arity of the block, and if zero use instance_exec on the Config. It would then look like this:
Mongoid.configure do
some_method ...
end
This can be done is a way that preserves the existing usage above.