Module: ActiveAdmin::AssetRegistration

Included in:
Application
Defined in:
lib/active_admin/asset_registration.rb

Instance Method Summary collapse

Instance Method Details

#clear_javascripts!Object


25
26
27
# File 'lib/active_admin/asset_registration.rb', line 25

def clear_javascripts!
  javascripts.clear
end

#clear_stylesheets!Object


13
14
15
# File 'lib/active_admin/asset_registration.rb', line 13

def clear_stylesheets!
  stylesheets.clear
end

#javascriptsObject


21
22
23
# File 'lib/active_admin/asset_registration.rb', line 21

def javascripts
  @javascripts ||= Set.new
end

#register_javascript(name) ⇒ Object


17
18
19
# File 'lib/active_admin/asset_registration.rb', line 17

def register_javascript(name)
  javascripts.add name
end

#register_stylesheet(path, options = {}) ⇒ Object


5
6
7
# File 'lib/active_admin/asset_registration.rb', line 5

def register_stylesheet(path, options = {})
  stylesheets[path] = options
end

#stylesheetsObject


9
10
11
# File 'lib/active_admin/asset_registration.rb', line 9

def stylesheets
  @stylesheets ||= {}
end