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(options={})
  options[:style] = :default unless options[:style].present?

   :div, '', class: 'loading_screen-spinner' do
    if options[:gif].present?
      gif_handler options
    else
      css_handler options
    end
  end
end