aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-09-02 00:43:33 +0200
committerXavier Noria <fxn@hashref.com>2016-09-02 00:43:33 +0200
commit810dff7c9fa9b2a38eb1560ce0378d760529ee6b (patch)
treed5ea948c1f0043c7bc4c5b10241279e448a6d696 /actionview
parent11eaf1c1dd48e86a38b8dc83a2b35d99f746b1f8 (diff)
downloadrails-810dff7c9fa9b2a38eb1560ce0378d760529ee6b.tar.gz
rails-810dff7c9fa9b2a38eb1560ce0378d760529ee6b.tar.bz2
rails-810dff7c9fa9b2a38eb1560ce0378d760529ee6b.zip
RuboCop is 100% green :tada:
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/date_helper.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/actionview/lib/action_view/helpers/date_helper.rb b/actionview/lib/action_view/helpers/date_helper.rb
index 74c6f0ab1c..c277738920 100644
--- a/actionview/lib/action_view/helpers/date_helper.rb
+++ b/actionview/lib/action_view/helpers/date_helper.rb
@@ -1011,12 +1011,13 @@ module ActionView
# css_class_attribute(:year, 'date optional', { year: 'my-year' })
# => "date optional my-year"
def css_class_attribute(type, html_options_class, options) # :nodoc:
- css_class = case options
- when Hash
- options[type.to_sym]
- else
- type
- end
+ css_class = \
+ case options
+ when Hash
+ options[type.to_sym]
+ else
+ type
+ end
[html_options_class, css_class].compact.join(" ")
end