engine/app/controllers/locomotive/snippets_controller.rb

16 lines
269 B
Ruby

module Locomotive
class SnippetsController < BaseController
sections 'settings', 'theme_assets'
respond_to :json, :only => :update
def destroy
destroy! do |format|
format.html { redirect_to theme_assets_url }
end
end
end
end