lib/cockpit/core/definition.rb in cockpit-0.2.4 vs lib/cockpit/core/definition.rb in cockpit-0.2.4.1

- old
+ new

@@ -21,9 +21,10 @@ @attributes = {} if block_given? @value = self.class.define!(&block) @nested = true + @callbacks = {} else args = args.pop if args.is_a?(Array) if args.last.is_a?(Hash) @attributes.merge!(args.pop)