summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-01 21:30:39 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-01 21:30:39 +0000
commit4df797956d3828168a08f16d2bf68f07e41ffc7f (patch)
tree2ef09cfa51cf7a3665df22e6711c8bea50e6ab9d /lib
parent1adeaa7aa7cbc375eec958e6323fe6d3c6cc2d7f (diff)
downloadredmine-4df797956d3828168a08f16d2bf68f07e41ffc7f.tar.gz
redmine-4df797956d3828168a08f16d2bf68f07e41ffc7f.zip
Errors#get is deprecated in Rails 5.
git-svn-id: http://svn.redmine.org/redmine/trunk@16595 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/views/labelled_form_builder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/views/labelled_form_builder.rb b/lib/redmine/views/labelled_form_builder.rb
index 9ef41d0b4..07805c562 100644
--- a/lib/redmine/views/labelled_form_builder.rb
+++ b/lib/redmine/views/labelled_form_builder.rb
@@ -45,7 +45,7 @@ class Redmine::Views::LabelledFormBuilder < ActionView::Helpers::FormBuilder
# A field for entering hours value
def hours_field(field, options={})
# display the value before type cast when the entered value is not valid
- if @object.errors.get(field).blank?
+ if @object.errors[field].blank?
options = options.merge(:value => format_hours(@object.send field))
end
text_field field, options