lib/active_admin/asset_registration.rb in activeadmin-0.6.6 vs lib/active_admin/asset_registration.rb in activeadmin-1.0.0.pre1
- old
+ new
@@ -8,11 +8,11 @@
def stylesheets
@stylesheets ||= {}
end
def clear_stylesheets!
- @stylesheets = {}
+ stylesheets.clear
end
def register_javascript(name)
javascripts.add name
end
@@ -20,10 +20,10 @@
def javascripts
@javascripts ||= Set.new
end
def clear_javascripts!
- @javascripts = Set.new
+ javascripts.clear
end
end
end