lib/cockpit/core/include.rb in cockpit-0.2.4.1 vs lib/cockpit/core/include.rb in cockpit-0.2.4.2

- old
+ new

@@ -8,10 +8,10 @@ module ClassMethods def cockpit(options = {}, &block) if block_given? options = {:store => options.to_sym} unless options.is_a?(Hash) @cockpit = Cockpit::Settings.define!(options.merge(:for => self), &block) - + @cockpit.roots.map(&:key).flatten.each do |key| define_method key do send(:cockpit).send(key) end