Module: Bootsy::ApplicationHelper
- Defined in:
- app/helpers/bootsy/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#refresh_btn ⇒ Object
4 5 6 7 8 |
# File 'app/helpers/bootsy/application_helper.rb', line 4 def refresh_btn link_to t('bootsy.action.refresh'), '#refresh-gallery', class: 'btn btn-default btn-sm refresh-btn' end |
#resource_or_nil(resource) ⇒ Object
10 11 12 |
# File 'app/helpers/bootsy/application_helper.rb', line 10 def resource_or_nil(resource) resource if resource.present? && resource.persisted? end |