Module: ActiveAdmin::AssetRegistration
- Included in:
- Application
- Defined in:
- lib/active_admin/asset_registration.rb
Instance Method Summary collapse
- #clear_javascripts! ⇒ Object
- #clear_stylesheets! ⇒ Object
- #javascripts ⇒ Object
-
#register_javascript(name) ⇒ Object
Javascripts.
-
#register_stylesheet(*args) ⇒ Object
Stylesheets.
- #stylesheets ⇒ Object
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 |
#javascripts ⇒ Object
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(*args) ⇒ Object
Stylesheets
6 7 8 |
# File 'lib/active_admin/asset_registration.rb', line 6 def register_stylesheet(*args) stylesheets << ActiveAdmin::Stylesheet.new(*args) end |
#stylesheets ⇒ Object
10 11 12 |
# File 'lib/active_admin/asset_registration.rb', line 10 def stylesheets @stylesheets ||= [] end |