lib/active_admin/asset_registration.rb in activeadmin-1.4.3 vs lib/active_admin/asset_registration.rb in activeadmin-2.0.0.rc1
- old
+ new
@@ -1,13 +1,9 @@
module ActiveAdmin
module AssetRegistration
def register_stylesheet(path, options = {})
- Deprecation.warn <<-MSG.strip_heredoc
- The `register_stylesheet` config is deprecated and will be removed
- in v2. Import your "#{path}" stylesheet in the active_admin.scss.
- MSG
stylesheets[path] = options
end
def stylesheets
@stylesheets ||= {}
@@ -16,13 +12,9 @@
def clear_stylesheets!
stylesheets.clear
end
def register_javascript(name)
- Deprecation.warn <<-MSG.strip_heredoc
- The `register_javascript` config is deprecated and will be removed
- in v2. Import your "#{name}" javascript in the active_admin.js.
- MSG
javascripts.add name
end
def javascripts
@javascripts ||= Set.new