From 79db3c4c1dbe89b14c0e801aa7f6ec441d264461 Mon Sep 17 00:00:00 2001 From: Miles Gould Date: Thu, 19 May 2016 14:40:24 +0100 Subject: [PATCH] Fix "duplicated key: :class" warning in HAML code The warning was app/views/harvests/_form.html.haml:32: warning: duplicated key at line 32 ignored: :class We were specifying two `:class` attributes on an HTML tag; I've combined them into one. --- app/views/harvests/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/harvests/_form.html.haml b/app/views/harvests/_form.html.haml index 67dbda1e0..40305a04a 100644 --- a/app/views/harvests/_form.html.haml +++ b/app/views/harvests/_form.html.haml @@ -29,7 +29,7 @@ -# Some browsers (eg Firefox for Android) assume "number" means -# "integer" unless you specify step="any": -# http://blog.isotoma.com/2012/03/html5-input-typenumber-and-decimalsfloats-in-chrome/ - = f.number_field :quantity, :class => 'input-small', :step => 'any', :class => 'form-control', :placeholder => 'optional' + = f.number_field :quantity, :class => 'input-small form-control', :step => 'any', :placeholder => 'optional' .col-md-2 = f.select(:unit, Harvest::UNITS_VALUES, {:include_blank => false}, :class => 'input-medium form-control')