app/controllers/phcscriptcdn/script/licences_controller.rb in phcscriptcdn-3.3.3 vs app/controllers/phcscriptcdn/script/licences_controller.rb in phcscriptcdn-4.0.0

- old
+ new

@@ -1,11 +1,11 @@ require_dependency "phcscriptcdn/application_controller" module Phcscriptcdn class Script::LicencesController < ApplicationController - #Secrity & Filters + # Filters & Security before_action :set_script_licence, only: [:show, :edit, :update, :destroy] # INDEX - Script Licences def index @script_licences = Script::Licence.all @@ -56,10 +56,10 @@ @script_licence = Script::Licence.find(params[:id]) end # Whitelists def script_licence_params - params.require(:script_licence).permit(:lcncname, :lcncdescript, :lcnccomgpl, :lcncarvlfsf, :lcncarvlosi, :lcncarvlcopyfree, :lcncarvldebian, :lcncarvlfedora) + params.require(:script_licence).permit(:lcncname, :lcncdescription, :lcncdescript, :lcnccomgpl, :lcncarvlfsf, :lcncarvlosi, :lcncarvlcopyfree, :lcncarvldebian, :lcncarvlfedora, :user_id, :user_name) end end end