Skip to content

Commit

Permalink
return self
Browse files Browse the repository at this point in the history
  • Loading branch information
pewniak747 authored and solnic committed Sep 19, 2013
1 parent 8e54e66 commit 3a83739
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/virtus/instance_methods.rb
Expand Up @@ -142,7 +142,7 @@ def freeze

# Reset an attribute to its default
#
# @return [default value]
# @return [self]
#
# @api public
#
Expand All @@ -164,6 +164,7 @@ def freeze
def reset_attribute(attribute_name)
attribute = attribute_set[attribute_name]
attribute_set.set_default(self, attribute) if attribute
self
end

# Set default attributes
Expand Down

0 comments on commit 3a83739

Please sign in to comment.