app/controllers/phcscriptcdnpro/script/licences_controller.rb in phcscriptcdnpro-7.1.3 vs app/controllers/phcscriptcdnpro/script/licences_controller.rb in phcscriptcdnpro-8.0.0
- old
+ new
@@ -13,10 +13,11 @@
@script_licences = Script::Licence.all
end
# DETAILS - Script Licences
def show
+ @script_licences = Script::Licence.friendly.find(params[:id])
end
# NEW - Script Licences
def new
@script_licence = Script::Licence.new
@@ -61,15 +62,15 @@
private
# Common Callbacks
def set_script_licence
- @script_licence = Script::Licence.find(params[:id])
+ @script_licence = Script::Licence.friendly.find(params[:id])
end
# Whitelists
def script_licence_params
- params.require(:script_licence).permit(:lcncname, :lcncdescription, :lcncdescript, :lcnccomgpl, :lcncarvlfsf, :lcncarvlosi, :lcncarvlcopyfree, :lcncarvldebian, :lcncarvlfedora, :user_id, :user_name, :membership_id, :oganization_id)
+ params.require(:script_licence).permit(:lcncname, :lcncdescription, :lcncdescript, :lcnccomgpl, :lcncarvlfsf, :lcncarvlosi, :lcncarvlcopyfree, :lcncarvldebian, :lcncarvlfedora, :user_id, :slug, :user_name, :membership_id, :oganization_id)
end
end
end
\ No newline at end of file