Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Freeze default option hash created by builder (refs #202)
  • Loading branch information
solnic committed Oct 1, 2013
1 parent 05ad24d commit c1adaf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/virtus/builder.rb
Expand Up @@ -138,7 +138,7 @@ def options
{ :coerce => config.coerce,
:finalize => config.finalize,
:strict => config.strict,
:configured_coercer => config.coercer }
:configured_coercer => config.coercer }.freeze
end

# Wrapper for the attribute method that is used in .add_included_hook
Expand Down Expand Up @@ -215,7 +215,7 @@ def core_extensions

# @api private
def options
super.update(:writer => :private)
super.merge(:writer => :private)
end

end # ValueObjectBuilder
Expand Down

0 comments on commit c1adaf0

Please sign in to comment.