diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-03-05 17:26:04 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-03-05 17:26:04 -0300 |
commit | ddf4c953ae8d10489e0bfd6008bd76395f6e1267 (patch) | |
tree | bc35ceca938f59287a14d2d610e65235f62b0129 /actionview/lib/action_view | |
parent | 1d02fb6e376c6f7224a5534d574e63dd9708cdd2 (diff) | |
download | rails-ddf4c953ae8d10489e0bfd6008bd76395f6e1267.tar.gz rails-ddf4c953ae8d10489e0bfd6008bd76395f6e1267.tar.bz2 rails-ddf4c953ae8d10489e0bfd6008bd76395f6e1267.zip |
Revert "Merge pull request #22764 from stevenspiel/titleize_model_name_for_default_submit_button_value"
This reverts commit 4158974c60d817c9bc1e2aecb342161295f2ac0d, reversing
changes made to 3d590add45b7ff1de972d99b076cb504d5208935.
Reason: This break i18n in some languages. See
https://github.com/rails/rails/issues/791#issuecomment-192724640
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r-- | actionview/lib/action_view/helpers/form_helper.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb index c1015ffe89..e91b3443c5 100644 --- a/actionview/lib/action_view/helpers/form_helper.rb +++ b/actionview/lib/action_view/helpers/form_helper.rb @@ -1922,8 +1922,6 @@ module ActionView @object_name.to_s.humanize end - model = model.downcase - defaults = [] defaults << :"helpers.submit.#{object_name}.#{key}" defaults << :"helpers.submit.#{key}" |