app/controllers/phcscriptcdnpro/script/extensions_controller.rb in phcscriptcdnpro-7.1.3 vs app/controllers/phcscriptcdnpro/script/extensions_controller.rb in phcscriptcdnpro-8.0.0
- old
+ new
@@ -13,10 +13,11 @@
@script_extensions = Script::Extension.all
end
# DETAILS - Script Extension
def show
+ @script_extensions = Script::Extension.friendly.find(params[:id])
end
# NEW - Script Extension
def new
@script_extension = Script::Extension.new
@@ -61,15 +62,15 @@
private
# Common Callbacks
def set_script_extension
- @script_extension = Script::Extension.find(params[:id])
+ @script_extension = Script::Extension.friendly.find(params[:id])
end
# Whitelists
def script_extension_params
- params.require(:script_extension).permit(:scriptextensionname, :scriptextensiondes, :scriptextension, :user_id, :user_name, :membership_id, :oganization_id)
+ params.require(:script_extension).permit(:scriptextensionname, :scriptextensiondes, :scriptextension, :user_id, :user_name, :slug, :membership_id, :oganization_id)
end
end
end
\ No newline at end of file