app/controllers/phcscriptcdnpro/script/urls_controller.rb in phcscriptcdnpro-7.1.3 vs app/controllers/phcscriptcdnpro/script/urls_controller.rb in phcscriptcdnpro-8.0.0

- old
+ new

@@ -15,11 +15,11 @@ end # DETAILED PROFILE - Script Authors def show script_listing = Script::Listing.find(params[:listing_id]) - @script_url = script_listing.urls.find(params[:id]) + @script_url = script_listing.urls.friendly.find(params[:id]) end # NEW - Script Athors def new script_listing = Script::Listing.find(params[:listing_id]) @@ -70,15 +70,15 @@ private # Common Callbacks def set_script_url - @script_url = Script::Url.find(params[:id]) + @script_url = Script::Url.friendly.find(params[:id]) end # Whitelists def script_url_params - params.require(:script_url).permit(:scripturl, :scripturlrelease, :scripturlcdnupdate, :user_id, :user_name, :membership_id, :oganization_id, :listing_id, :version_id, :extension_id) + params.require(:script_url).permit(:scripturl, :scripturlrelease, :scripturlcdnupdate. :slug, :user_id, :user_name, :membership_id, :oganization_id, :listing_id, :version_id, :extension_id) end end end \ No newline at end of file