Module: ActiveAdmin::AssetRegistration

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

Instance Method Summary collapse

Instance Method Details

#clear_javascripts!Object



29
30
31
# File 'lib/active_admin/asset_registration.rb', line 29

def clear_javascripts!
  @javascripts = []
end

#clear_stylesheets!Object



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

def clear_stylesheets!
  @stylesheets = []
end

#javascriptsObject



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

def javascripts
  @javascripts ||= []
end

#register_javascript(name) ⇒ Object

Javascripts



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

def register_javascript(name)
  javascripts << name
end

#register_stylesheet(name) ⇒ Object

Stylesheets



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

def register_stylesheet(name)
  stylesheets << name
end

#stylesheetsObject



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

def stylesheets
  @stylesheets ||= []
end