From 810dff7c9fa9b2a38eb1560ce0378d760529ee6b Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Fri, 2 Sep 2016 00:43:33 +0200 Subject: RuboCop is 100% green :tada: --- actionview/lib/action_view/helpers/date_helper.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'actionview/lib/action_view') 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 -- cgit v1.2.3