app/controllers/admin/snippets_controller.rb in locomotive_cms-0.0.3.3 vs app/controllers/admin/snippets_controller.rb in locomotive_cms-0.0.4.beta1

- old
+ new

@@ -1,13 +1,15 @@ module Admin class SnippetsController < BaseController - - sections 'settings' - + + sections 'settings', 'theme_assets' + respond_to :json, :only => :update - - def index - @snippets = current_site.snippets.order_by([[:name, :asc]]) + + def destroy + destroy! do |format| + format.html { redirect_to admin_theme_assets_url } + end end - + end -end \ No newline at end of file +end