Module: ActiveAdmin::AssetRegistration

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

Instance Method Summary collapse

Instance Method Details

#clear_javascripts!Object


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

def clear_javascripts!
  javascripts.clear
end

#clear_stylesheets!Object


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

def clear_stylesheets!
  stylesheets.clear
end

#javascriptsObject


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

def javascripts
  @javascripts ||= Set.new
end

#register_javascript(name) ⇒ Object


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

def register_javascript(name)
  javascripts.add name
end

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


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

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

#stylesheetsObject


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

def stylesheets
  @stylesheets ||= {}
end