lib/hashr.rb in hashr-0.0.18 vs lib/hashr.rb in hashr-0.0.19

- old
+ new

@@ -33,9 +33,11 @@ deep_accessorize(value) end end end + undef :id if method_defined?(:id) # undefine deprecated method #id on 1.8.x + def initialize(data = {}, definition = self.class.definition, &block) replace((deep_hashrize(definition.deep_merge((data || {}).deep_symbolize_keys)))) deep_defaultize(self) (class << self; self; end).class_eval(&block) if block_given? end