Module: LoadingScreen::LoadingScreenHelper
- Defined in:
- app/helpers/loading_screen/loading_screen_helper.rb
Instance Method Summary collapse
Instance Method Details
#loading_screen(options = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'app/helpers/loading_screen/loading_screen_helper.rb', line 3 def loading_screen(={}) content_tag :div, '', class: 'loading_screen-spinner' do if [:gif].present? content_tag :div do image_tag([:gif], id: 'loading_screen-spinner-image') end else content_tag :div, '', id: 'loading_screen-spinner-css' end end end |