Permalink
Browse files

Merge pull request #10267 from vipulnsward/use_destructive_method

symbolize_keys => symbolize_keys! on new hash; change sentence
  • Loading branch information...
2 parents fc5090c + c52c268 commit 08c6df8532a1884050c8e9087e9fce9df6528ae2 @rafaelfranca rafaelfranca committed Apr 19, 2013
@@ -808,7 +808,7 @@ def select_year
options[:max_years_allowed] = @options[:max_years_allowed] || 1000
if (options[:end] - options[:start]).abs > options[:max_years_allowed]
- raise ArgumentError, "There're too many years options to be built. Are you sure you haven't mistyped something? You can provide the :max_years_allowed parameter"
+ raise ArgumentError, "There are too many years options to be built. Are you sure you haven't mistyped something? You can provide the :max_years_allowed parameter."
end
build_options_and_select(:year, val, options)
@@ -223,7 +223,7 @@ def stringify_keys; dup end
def deep_stringify_keys; dup end
undef :symbolize_keys!
undef :deep_symbolize_keys!
- def symbolize_keys; to_hash.symbolize_keys end
+ def symbolize_keys; to_hash.symbolize_keys! end
def deep_symbolize_keys; to_hash.deep_symbolize_keys end
def to_options!; self end

0 comments on commit 08c6df8

Please sign in to comment.