Module: NsaPanel::UsersHelper
- Defined in:
- app/helpers/nsa_panel/users_helper.rb
Instance Method Summary collapse
Instance Method Details
#blackout(text, attribute) ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/nsa_panel/users_helper.rb', line 3 def blackout(text, attribute) to_blackout = !%w[id name].include?(attribute) text = '_' * text.to_s.size if to_blackout content_tag(:span, text, class: to_blackout ? 'blackout' : '') end |