diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2017-04-18 18:27:10 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-04-18 18:27:10 +0300 |
commit | 7f66e8ad17141cbe8a1b87adce665f49f94a4aa4 (patch) | |
tree | 6f94d531422a05b94672f2fea4c437a033b7391f /app/helpers/icons_helper.rb | |
parent | 9ec58d8a67c611a5544c0994a8ef9f350a94d2db (diff) |
Add tests
Diffstat (limited to 'app/helpers/icons_helper.rb')
-rw-r--r-- | app/helpers/icons_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/icons_helper.rb b/app/helpers/icons_helper.rb index ef260cff182..55fa81e95ef 100644 --- a/app/helpers/icons_helper.rb +++ b/app/helpers/icons_helper.rb @@ -7,7 +7,7 @@ module IconsHelper # font-awesome-rails gem, but should we ever use a different icon pack in the # future we won't have to change hundreds of method calls. def icon(names, options = {}) - if !options['aria-hidden'] and !options['aria-label'] + if (options.keys & %w[aria-hidden aria-label]).empty? # Add `aria-hidden` if there are no aria's set options['aria-hidden'] = true end |