Skip to content

Commit

Permalink
symbolize_keys => symbolize_keys! on new hash;
Browse files Browse the repository at this point in the history
"There're" => There are for better readability
  • Loading branch information
vipulnsward committed Apr 19, 2013
1 parent 30f9237 commit c52c268
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/date_helper.rb
Expand Up @@ -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)
Expand Down
Expand Up @@ -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

Expand Down

0 comments on commit c52c268

Please sign in to comment.