diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-15 16:56:29 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-15 16:56:29 +0100 |
commit | fdc17bea58f210f62ac0d9e836b68e84c6dbd15c (patch) | |
tree | 491613c94695ba867e81d50124e7e3eb73a0eff5 /app/helpers/accounts_helper.rb | |
parent | a91c3ef6cef0fe5a1645c043e7d4a5ef96e82c4f (diff) |
Fix rubocop issues, introduce usage of frozen literal to improve performance
Diffstat (limited to 'app/helpers/accounts_helper.rb')
-rw-r--r-- | app/helpers/accounts_helper.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/helpers/accounts_helper.rb b/app/helpers/accounts_helper.rb index 23eec6c67..17c7b4b82 100644 --- a/app/helpers/accounts_helper.rb +++ b/app/helpers/accounts_helper.rb @@ -1,10 +1,12 @@ +# frozen_string_literal: true + module AccountsHelper def pagination_options { - previous_label: "#{fa_icon('chevron-left')} Prev".html_safe, - next_label: "Next #{fa_icon('chevron-right')}".html_safe, + previous_label: safe_join([fa_icon('chevron-left'), 'Prev'], ' '), + next_label: safe_join(['Next', fa_icon('chevron-right')], ' '), inner_window: 1, - outer_window: 0 + outer_window: 0, } end end |