lib/virtus/instance_methods.rb in virtus-1.0.5 vs lib/virtus/instance_methods.rb in virtus-2.0.0
- old
+ new
@@ -12,10 +12,10 @@
#
# @return [undefined]
#
# @api private
def initialize(attributes = nil)
- self.class.attribute_set.set(self, attributes) if attributes
+ attribute_set.set(self, attributes) if attributes
set_default_attributes
end
end # Constructor