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(path, options = {}) ⇒ Object
- #register_stylesheet(path, options = {}) ⇒ Object
- #stylesheets ⇒ Object
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 |
#javascripts ⇒ Object
21 22 23 |
# File 'lib/active_admin/asset_registration.rb', line 21 def javascripts @javascripts ||= {} end |
#register_javascript(path, options = {}) ⇒ Object
17 18 19 |
# File 'lib/active_admin/asset_registration.rb', line 17 def register_javascript(path, = {}) javascripts[path] = end |
#register_stylesheet(path, options = {}) ⇒ Object
5 6 7 |
# File 'lib/active_admin/asset_registration.rb', line 5 def register_stylesheet(path, = {}) stylesheets[path] = end |
#stylesheets ⇒ Object
9 10 11 |
# File 'lib/active_admin/asset_registration.rb', line 9 def stylesheets @stylesheets ||= {} end |