Module: UdongoHelper

Defined in:
app/helpers/udongo_helper.rb

Instance Method Summary collapse

Instance Method Details

#javascript(file, target = :javascripts) ⇒ Object

Before using: Put <%= yield(:javascripts) %> in the <head> of your app’s frontend



3
4
5
6
# File 'app/helpers/udongo_helper.rb', line 3

def javascript(file, target = :javascripts)
  js_asset_loader.view = self
  js_asset_loader.load_js file, target
end

#stylesheet(file, media = :screen) ⇒ Object

Before using: Put <%= yield(:stylesheets) %> in the <head> of your app’s frontend



9
10
11
12
# File 'app/helpers/udongo_helper.rb', line 9

def stylesheet(file, media = :screen)
  css_asset_loader.view = self
  css_asset_loader.load_css file, media
end