Module: Interage::BootstrapButtonHelper
- Included in:
- ApplicationHelper
- Defined in:
- lib/interage/bootstrap_button_helper.rb
Constant Summary collapse
- DEFAULT_BTN_CLASS =
'btn btn-sm btn-outline-'
Instance Method Summary collapse
- #bootstrap_default_btn_class(type) ⇒ Object (also: #bs_default_btn_class)
Instance Method Details
#bootstrap_default_btn_class(type) ⇒ Object Also known as: bs_default_btn_class
7 8 9 10 11 |
# File 'lib/interage/bootstrap_button_helper.rb', line 7 def bootstrap_default_btn_class(type) default_btn_class = ENV.fetch('DEFAULT_BTN_TYPE_CLASS', DEFAULT_BTN_CLASS) "#{default_btn_class}#{type} text-truncate" end |