app/controllers/phcscriptcdnpro/scriptcdn/mains_controller.rb in phcscriptcdnpro-1.5.3 vs app/controllers/phcscriptcdnpro/scriptcdn/mains_controller.rb in phcscriptcdnpro-1.5.4
- old
+ new
@@ -3,11 +3,10 @@
module Phcscriptcdnpro
class Scriptcdn::MainsController < ApplicationController
# Security & Action Filters
before_action :require_user
- before_action :scriptcdn_version_information
layout '/layouts/phcscriptcdnpro/application.html.erb'
before_action :set_scriptcdn_main, only: [:show, :edit, :update, :destroy]
# Script CDN Backend Index
def index
@@ -51,14 +50,9 @@
@scriptcdn_main.destroy
redirect_to scriptcdn_mains_url, notice: 'Main was successfully destroyed.'
end
private
-
- # Directory Category Information
- def scriptcdn_version_information
- @scriptcdn_vserion = Scriptcdn::Version.find(params[:version_id])
- end
# Common Callbacks
def set_scriptcdn_main
@scriptcdn_main = Scriptcdn::Main.find(params[:id])
end