symbolize_keys => symbolize_keys! on new hash;
"There're" => There are for better readability
This commit is contained in:
parent
30f9237b8e
commit
c52c2682bf
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user