Method: Skyline::ButtonHelper#button_text
- Defined in:
- app/helpers/skyline/button_helper.rb
#button_text(key) ⇒ Object
Translates the key if it’s a symbol otherwise just places key –
28 29 30 |
# File 'app/helpers/skyline/button_helper.rb', line 28 def (key) (key.kind_of?(Symbol) ? t(key, :scope => :buttons) : key).html_safe end |