app/controllers/phcscriptcdnpro/scriptcdn/scripts_controller.rb in phcscriptcdnpro-1.3.7 vs app/controllers/phcscriptcdnpro/scriptcdn/scripts_controller.rb in phcscriptcdnpro-1.3.8
- old
+ new
@@ -1,11 +1,12 @@
require_dependency "phcscriptcdnpro/application_controller"
module Phcscriptcdnpro
class Scriptcdn::ScriptsController < ApplicationController
- # Filters and Security
+ # Security & Action Filters
before_action :require_user
+ layout '/layouts/phcscriptcdnpro/application.html.erb'
before_action :set_scriptcdn_script, only: [:show, :edit, :update, :destroy]
# Script CDN Index
def index
@scriptcdn_scripts = Scriptcdn::Script.all