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
- #register_stylesheet(path, options = {}) ⇒ Object
- #stylesheets ⇒ Object
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 |
#javascripts ⇒ Object
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, = {}) stylesheets[path] = end |
#stylesheets ⇒ Object
8 9 10 |
# File 'lib/active_admin/asset_registration.rb', line 8 def stylesheets @stylesheets ||= {} end |