Module: LoadingScreen::LoadingScreenHelper
- Defined in:
- app/helpers/loading_screen/loading_screen_helper.rb
Instance Method Summary collapse
Instance Method Details
#loading_screen(options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/helpers/loading_screen/loading_screen_helper.rb', line 6 def loading_screen(={}) [:style] = :default unless [:style] @background = 'background-color: ' + [:background] if [:background] @color = 'background-color: ' + [:color] if [:color] content_tag :div, '', class: 'loading_screen-spinner', style: @background do if [:gif].present? gif_handler else css_handler end end end |