lib/representable/definition.rb in representable-1.2.7 vs lib/representable/definition.rb in representable-1.2.8

- old
+ new

@@ -6,10 +6,10 @@ def initialize(sym, options={}) @name = sym.to_s @options = options - options[:default] ||= [] if array? # FIXME: move to CollectionBinding! + @options[:default] ||= [] if array? # FIXME: move to CollectionBinding! end def clone self.class.new(name, options.clone) # DISCUSS: make generic Definition.cloned_attribute that passes list to constructor. end