lib/characterizable.rb in characterizable-0.0.3 vs lib/characterizable.rb in characterizable-0.0.4

- old
+ new

@@ -103,9 +103,10 @@ @_characteristics ||= SurvivorHash.new end include Blockenspiel::DSL def has(name, options = {}, &block) characteristics[name] = Characteristic.new(self, name, options, &block) + klass.define_attribute_methods if klass.respond_to? :define_attribute_methods klass.module_eval(%{ def #{name}_with_expire_snapshot=(new_#{name}) expire_snapshot! self.#{name}_without_expire_snapshot = new_#{name} end