phcscriptcdn 5.1.2 → 6.0.0b
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +10 -10
- data/Rakefile +1 -1
- data/app/assets/config/phcscriptcdn_manifest.js +1 -1
- data/app/assets/javascripts/phcscriptcdn/application.js +1 -1
- data/app/assets/stylesheets/phcscriptcdn/application.scss +1 -1
- data/app/controllers/phcscriptcdn/application_controller.rb +4 -4
- data/app/controllers/phcscriptcdn/script/authors_controller.rb +12 -12
- data/app/controllers/phcscriptcdn/script/extensions_controller.rb +12 -12
- data/app/controllers/phcscriptcdn/script/licences_controller.rb +13 -13
- data/app/controllers/phcscriptcdn/script/listings_controller.rb +13 -13
- data/app/controllers/phcscriptcdn/script/urls_controller.rb +12 -12
- data/app/controllers/phcscriptcdn/script/versions_controller.rb +12 -12
- data/app/helpers/phcscriptcdn/application_helper.rb +1 -1
- data/app/jobs/phcscriptcdn/application_job.rb +1 -1
- data/app/models/phcscriptcdn/script/author.rb +5 -1
- data/app/models/phcscriptcdn/script/extension.rb +5 -1
- data/app/models/phcscriptcdn/script/licence.rb +5 -1
- data/app/models/phcscriptcdn/script/listing.rb +5 -1
- data/app/models/phcscriptcdn/script/url.rb +2 -1
- data/app/models/phcscriptcdn/script/version.rb +5 -1
- data/app/views/layouts/phcscriptcdn/application.html.erb +2 -2
- data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +2 -2
- data/app/views/layouts/phcscriptcdn/components/backend/navigation/_navigation.html.erb +7 -7
- data/app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar.html.erb +1 -1
- data/app/views/layouts/phcscriptcdn/frontend.html.erb +2 -2
- data/app/views/phcscriptcdn/script/authors/_form.html.erb +3 -3
- data/app/views/phcscriptcdn/script/authors/edit.html.erb +1 -1
- data/app/views/phcscriptcdn/script/authors/index.html.erb +1 -1
- data/app/views/phcscriptcdn/script/authors/new.html.erb +1 -1
- data/app/views/phcscriptcdn/script/authors/show.html.erb +1 -1
- data/app/views/phcscriptcdn/script/extensions/_form.html.erb +3 -3
- data/app/views/phcscriptcdn/script/extensions/edit.html.erb +1 -1
- data/app/views/phcscriptcdn/script/extensions/index.html.erb +1 -1
- data/app/views/phcscriptcdn/script/extensions/new.html.erb +1 -1
- data/app/views/phcscriptcdn/script/extensions/show.html.erb +1 -1
- data/app/views/phcscriptcdn/script/licences/_form.html.erb +1 -1
- data/app/views/phcscriptcdn/script/licences/edit.html.erb +1 -1
- data/app/views/phcscriptcdn/script/licences/new.html.erb +1 -1
- data/app/views/phcscriptcdn/script/licences/show.html.erb +1 -1
- data/app/views/phcscriptcdn/script/listings/_form.html.erb +3 -3
- data/app/views/phcscriptcdn/script/listings/edit.html.erb +1 -1
- data/app/views/phcscriptcdn/script/listings/new.html.erb +1 -1
- data/app/views/phcscriptcdn/script/listings/show.html.erb +1 -1
- data/app/views/phcscriptcdn/script/urls/_form.html.erb +3 -3
- data/app/views/phcscriptcdn/script/urls/edit.html.erb +1 -1
- data/app/views/phcscriptcdn/script/urls/new.html.erb +1 -1
- data/app/views/phcscriptcdn/script/urls/show.html.erb +1 -1
- data/app/views/phcscriptcdn/script/versions/_form.html.erb +3 -3
- data/app/views/phcscriptcdn/script/versions/edit.html.erb +1 -1
- data/app/views/phcscriptcdn/script/versions/index.html.erb +1 -1
- data/app/views/phcscriptcdn/script/versions/new.html.erb +1 -1
- data/app/views/phcscriptcdn/script/versions/show.html.erb +1 -1
- data/config/initializers/friendly_id.rb +92 -0
- data/config/routes.rb +1 -1
- data/db/migrate/20160731205205_create_phcscriptcdn_script_extensions.rb +4 -4
- data/db/migrate/20160731205917_create_phcscriptcdn_script_listings.rb +11 -11
- data/db/migrate/20160731205954_create_phcscriptcdn_script_versions.rb +7 -7
- data/db/migrate/20160731210626_create_phcscriptcdn_script_urls.rb +8 -8
- data/db/migrate/20160731210723_create_phcscriptcdn_script_authors.rb +8 -8
- data/db/migrate/20160801032225_create_phcscriptcdn_script_licences.rb +8 -8
- data/db/migrate/20170423022446_create_friendly_id_slugs.rb +15 -0
- data/lib/phcscriptcdn.rb +1 -1
- data/lib/phcscriptcdn/engine.rb +3 -1
- data/lib/phcscriptcdn/version.rb +2 -2
- data/lib/tasks/phcscriptcdn_tasks.rake +1 -1
- metadata +168 -202
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33f130e6d9e320fc9fc2d0e8d9214a400b17ef39
|
4
|
+
data.tar.gz: 5159cf35b63f787b7b454517dd538b6ced87d1c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddb2ec7916fe44e982ea87d35653dc0db8f1e39e263091096f8add92b4c5955d3226b4c4636eed191ac366fe1f0cf81329f8cdeda79eb7a11b17ba640329c736
|
7
|
+
data.tar.gz: 8e8608cb6ad05cb15aca76bacef72b52ad18d4eca6d1463e566865cdce400c153bce70a17e8615766857c886ebd54b32d53a632cc869989316a7578928c8107e
|
data/MIT-LICENSE
CHANGED
@@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
17
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
18
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
19
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[![Dependency Status](https://gemnasium.com/badges/github.com/PHCNetworks/phc-scriptcdn.svg)](https://gemnasium.com/github.com/PHCNetworks/phc-scriptcdn)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/phcscriptcdn.svg)](https://badge.fury.io/rb/phcscriptcdn)
|
5
5
|
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/PHCNetworks/phc-scriptcdn/blob/master/MIT-LICENSE)
|
6
|
-
|
6
|
+
|
7
7
|
### PHCScriptCDN(5) (Script Listing Engine) Documentation
|
8
8
|
PHCScriptCDN(5) rails script management engine for website script CDN listings.
|
9
9
|
|
@@ -12,24 +12,24 @@ PHCScriptCDN(5) rails script management engine for website script CDN listings.
|
|
12
12
|
* Script versions and script URLs.
|
13
13
|
|
14
14
|
#### Step 1 - Add PHCScriptCDN to your gemfile and run command
|
15
|
-
|
15
|
+
|
16
16
|
gem 'phcscriptcdn', '~> 5.0'
|
17
17
|
bundle install
|
18
|
-
|
18
|
+
|
19
19
|
#### Step 2 - Copy PHCScriptCDN Database Tables
|
20
|
-
To copy PHCScriptCDN's required database migrations, copy each command individually to your terminal's command line.
|
20
|
+
To copy PHCScriptCDN's required database migrations, copy each command individually to your terminal's command line.
|
21
21
|
|
22
22
|
rails phcscriptcdn:install:migrations
|
23
23
|
rails db:migrate
|
24
|
-
|
24
|
+
|
25
25
|
#### Step 3 - Mount PHCScriptCDN & Add Routes
|
26
26
|
Mount PHCMembers by adding code below to your routes file.
|
27
|
-
|
27
|
+
|
28
28
|
mount Phcscriptcdn::Engine, :at => '/'
|
29
|
-
|
29
|
+
|
30
30
|
#### Step 4 - Recompile Assets
|
31
31
|
To properly function re-compile your application's assets to copy over required files.
|
32
|
-
|
32
|
+
|
33
33
|
rails assets:clobber
|
34
34
|
rails assets:precompile
|
35
35
|
|
@@ -37,7 +37,7 @@ To properly function re-compile your application's assets to copy over required
|
|
37
37
|
All PHCScriptCDN views and layouts can be overwritten by copying files to your application.
|
38
38
|
|
39
39
|
rails generate phcscriptcdn:views
|
40
|
-
|
40
|
+
|
41
41
|
#### Additional Information
|
42
42
|
|
43
|
-
- [Critical Security Updates](https://github.com/PHCNetworks/phc-scriptcdn/wiki/Critical-Security-Updates)
|
43
|
+
- [Critical Security Updates](https://github.com/PHCNetworks/phc-scriptcdn/wiki/Critical-Security-Updates)
|
data/Rakefile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
//= link_directory ../javascripts/phcscriptcdn .js
|
2
|
-
//= link_directory ../stylesheets/phcscriptcdn .scss
|
2
|
+
//= link_directory ../stylesheets/phcscriptcdn .scss
|
@@ -1,2 +1,2 @@
|
|
1
1
|
// Load PHCAdmin3 Javascript
|
2
|
-
//= require phc_admins_main_three
|
2
|
+
//= require phc_admins_main_three
|
@@ -1,2 +1,2 @@
|
|
1
1
|
// Load PHCAdmin3 Styles
|
2
|
-
@import "phc_admins_style_three";
|
2
|
+
@import "phc_admins_style_three";
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module Phcscriptcdn
|
2
2
|
class ApplicationController < ActionController::Base
|
3
|
-
|
3
|
+
|
4
4
|
# Security
|
5
5
|
protect_from_forgery with: :exception
|
6
|
-
|
6
|
+
|
7
7
|
# Load Helpers
|
8
8
|
helper Phctitleseo::Engine.helpers
|
9
9
|
helper Phcnotifi::Engine.helpers
|
10
|
-
|
10
|
+
|
11
11
|
end
|
12
|
-
end
|
12
|
+
end
|
@@ -2,28 +2,28 @@ require_dependency "phcscriptcdn/application_controller"
|
|
2
2
|
|
3
3
|
module Phcscriptcdn
|
4
4
|
class Script::AuthorsController < ApplicationController
|
5
|
-
|
5
|
+
|
6
6
|
# Filters & Security
|
7
7
|
before_action :set_script_author, only: [:show, :edit, :update, :destroy]
|
8
|
-
|
8
|
+
|
9
9
|
# INDEX - Script Author
|
10
10
|
def index
|
11
11
|
@script_authors = Script::Author.all
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
# DETAILS - Script Author
|
15
15
|
def show
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
# NEW - Script Author
|
19
19
|
def new
|
20
20
|
@script_author = Script::Author.new
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
# EDIT - Script Author
|
24
24
|
def edit
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
# CREATE - Script Author
|
28
28
|
def create
|
29
29
|
@script_author = Script::Author.new(script_author_params)
|
@@ -33,7 +33,7 @@ module Phcscriptcdn
|
|
33
33
|
render :new
|
34
34
|
end
|
35
35
|
end
|
36
|
-
|
36
|
+
|
37
37
|
# PATCH/PUT - Script Author
|
38
38
|
def update
|
39
39
|
if @script_author.update(script_author_params)
|
@@ -42,24 +42,24 @@ module Phcscriptcdn
|
|
42
42
|
render :edit
|
43
43
|
end
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
# DELETE - Script Author
|
47
47
|
def destroy
|
48
48
|
@script_author.destroy
|
49
49
|
redirect_to script_authors_url, notice: 'Author was successfully destroyed.'
|
50
50
|
end
|
51
|
-
|
51
|
+
|
52
52
|
private
|
53
|
-
|
53
|
+
|
54
54
|
# Common Callbacks
|
55
55
|
def set_script_author
|
56
56
|
@script_author = Script::Author.find(params[:id])
|
57
57
|
end
|
58
|
-
|
58
|
+
|
59
59
|
# Whitelist
|
60
60
|
def script_author_params
|
61
61
|
params.require(:script_author).permit(:authorfirstname, :authorlastname, :authorwebsite, :authorgithub, :authortwitter, :user_id, :user_name)
|
62
62
|
end
|
63
|
-
|
63
|
+
|
64
64
|
end
|
65
65
|
end
|
@@ -2,28 +2,28 @@ require_dependency "phcscriptcdn/application_controller"
|
|
2
2
|
|
3
3
|
module Phcscriptcdn
|
4
4
|
class Script::ExtensionsController < ApplicationController
|
5
|
-
|
5
|
+
|
6
6
|
# Filters & Security
|
7
7
|
before_action :set_script_extension, only: [:show, :edit, :update, :destroy]
|
8
|
-
|
8
|
+
|
9
9
|
# INDEX - Script Extension
|
10
10
|
def index
|
11
11
|
@script_extensions = Script::Extension.all
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
# DETAILS - Script Extension
|
15
15
|
def show
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
# NEW - Script Extension
|
19
19
|
def new
|
20
20
|
@script_extension = Script::Extension.new
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
# EDIT - Script Extension
|
24
24
|
def edit
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
# CREATE - Script Extension
|
28
28
|
def create
|
29
29
|
@script_extension = Script::Extension.new(script_extension_params)
|
@@ -33,7 +33,7 @@ module Phcscriptcdn
|
|
33
33
|
render :new
|
34
34
|
end
|
35
35
|
end
|
36
|
-
|
36
|
+
|
37
37
|
# PATCH/PUT - Script Extension
|
38
38
|
def update
|
39
39
|
if @script_extension.update(script_extension_params)
|
@@ -42,24 +42,24 @@ module Phcscriptcdn
|
|
42
42
|
render :edit
|
43
43
|
end
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
# DELETE - Script Extension
|
47
47
|
def destroy
|
48
48
|
@script_extension.destroy
|
49
49
|
redirect_to script_extensions_url, notice: 'Extension was successfully destroyed.'
|
50
50
|
end
|
51
|
-
|
51
|
+
|
52
52
|
private
|
53
|
-
|
53
|
+
|
54
54
|
# Common Callbacks
|
55
55
|
def set_script_extension
|
56
56
|
@script_extension = Script::Extension.find(params[:id])
|
57
57
|
end
|
58
|
-
|
58
|
+
|
59
59
|
# Whitelists
|
60
60
|
def script_extension_params
|
61
61
|
params.require(:script_extension).permit(:scriptextensionname, :scriptextensiondes, :scriptextension, :user_id, :user_name)
|
62
62
|
end
|
63
|
-
|
63
|
+
|
64
64
|
end
|
65
65
|
end
|
@@ -2,28 +2,28 @@ require_dependency "phcscriptcdn/application_controller"
|
|
2
2
|
|
3
3
|
module Phcscriptcdn
|
4
4
|
class Script::LicencesController < ApplicationController
|
5
|
-
|
5
|
+
|
6
6
|
# Filters & Security
|
7
7
|
before_action :set_script_licence, only: [:show, :edit, :update, :destroy]
|
8
|
-
|
8
|
+
|
9
9
|
# INDEX - Script Licences
|
10
10
|
def index
|
11
11
|
@script_licences = Script::Licence.all
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
# DETAILS - Script Licences
|
15
15
|
def show
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
# NEW - Script Licences
|
19
19
|
def new
|
20
20
|
@script_licence = Script::Licence.new
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
# EDIT - Script Licences
|
24
24
|
def edit
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
# POST - Script Licences
|
28
28
|
def create
|
29
29
|
@script_licence = Script::Licence.new(script_licence_params)
|
@@ -33,7 +33,7 @@ module Phcscriptcdn
|
|
33
33
|
render :new
|
34
34
|
end
|
35
35
|
end
|
36
|
-
|
36
|
+
|
37
37
|
# PATCH/PUT - Script Licences
|
38
38
|
def update
|
39
39
|
if @script_licence.update(script_licence_params)
|
@@ -42,24 +42,24 @@ module Phcscriptcdn
|
|
42
42
|
render :edit
|
43
43
|
end
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
# DELETE - Script Licences
|
47
47
|
def destroy
|
48
48
|
@script_licence.destroy
|
49
49
|
redirect_to script_licences_url, notice: 'Licence was successfully destroyed.'
|
50
50
|
end
|
51
|
-
|
51
|
+
|
52
52
|
private
|
53
|
-
|
53
|
+
|
54
54
|
# Common Callbacks
|
55
55
|
def set_script_licence
|
56
56
|
@script_licence = Script::Licence.find(params[:id])
|
57
57
|
end
|
58
|
-
|
58
|
+
|
59
59
|
# Whitelists
|
60
60
|
def script_licence_params
|
61
61
|
params.require(:script_licence).permit(:lcncname, :lcncdescription, :lcncdescript, :lcnccomgpl, :lcncarvlfsf, :lcncarvlosi, :lcncarvlcopyfree, :lcncarvldebian, :lcncarvlfedora, :user_id, :user_name)
|
62
62
|
end
|
63
|
-
|
63
|
+
|
64
64
|
end
|
65
|
-
end
|
65
|
+
end
|
@@ -2,28 +2,28 @@ require_dependency "phcscriptcdn/application_controller"
|
|
2
2
|
|
3
3
|
module Phcscriptcdn
|
4
4
|
class Script::ListingsController < ApplicationController
|
5
|
-
|
5
|
+
|
6
6
|
# Filters & Security
|
7
7
|
before_action :set_script_listing, only: [:show, :edit, :update, :destroy]
|
8
|
-
|
8
|
+
|
9
9
|
# INDEX - Script Listings
|
10
10
|
def index
|
11
11
|
@script_listings = Script::Listing.all
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
# DETAILS - Script Listings
|
15
15
|
def show
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
# NEW - Script Listings
|
19
19
|
def new
|
20
20
|
@script_listing = Script::Listing.new
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
# EDIT - Script Listings
|
24
24
|
def edit
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
# POST - Script Listings
|
28
28
|
def create
|
29
29
|
@script_listing = Script::Listing.new(script_listing_params)
|
@@ -33,7 +33,7 @@ module Phcscriptcdn
|
|
33
33
|
render :new
|
34
34
|
end
|
35
35
|
end
|
36
|
-
|
36
|
+
|
37
37
|
# PATCH/PUT - Script Listings
|
38
38
|
def update
|
39
39
|
if @script_listing.update(script_listing_params)
|
@@ -42,24 +42,24 @@ module Phcscriptcdn
|
|
42
42
|
render :edit
|
43
43
|
end
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
# DELETE - Script Listings
|
47
47
|
def destroy
|
48
48
|
@script_listing.destroy
|
49
49
|
redirect_to script_listings_path, notice: 'Listing was successfully destroyed.'
|
50
50
|
end
|
51
|
-
|
51
|
+
|
52
52
|
private
|
53
|
-
|
53
|
+
|
54
54
|
# Common Callbacks
|
55
55
|
def set_script_listing
|
56
56
|
@script_listing = Script::Listing.find(params[:id])
|
57
57
|
end
|
58
|
-
|
58
|
+
|
59
59
|
# Whitelist
|
60
60
|
def script_listing_params
|
61
61
|
params.require(:script_listing).permit(:scripttitle, :scriptdescription, :descriptionsource, :scriptwebsite, :scripttwitter, :scriptgithub, :scriptinitialrelease, :scriptlastestrelease, :scriptbetarelease, :scriptstatus, :user_id, :user_name, :version_id, :author_id, :licence_id)
|
62
62
|
end
|
63
|
-
|
63
|
+
|
64
64
|
end
|
65
|
-
end
|
65
|
+
end
|
@@ -2,34 +2,34 @@ require_dependency "phcscriptcdn/application_controller"
|
|
2
2
|
|
3
3
|
module Phcscriptcdn
|
4
4
|
class Script::UrlsController < ApplicationController
|
5
|
-
|
5
|
+
|
6
6
|
# Filters & Security
|
7
7
|
before_action :set_script_url, only: [:show, :edit, :update, :destroy]
|
8
|
-
|
8
|
+
|
9
9
|
# INDEX - Script Authors
|
10
10
|
def index
|
11
11
|
script_listing = Script::Listing.find(params[:listing_id])
|
12
12
|
@script_urls = script_listing.urls
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
# DETAILED PROFILE - Script Authors
|
16
16
|
def show
|
17
17
|
script_listing = Script::Listing.find(params[:listing_id])
|
18
18
|
@script_url = script_listing.urls.find(params[:id])
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
# NEW - Script Athors
|
22
22
|
def new
|
23
23
|
script_listing = Script::Listing.find(params[:listing_id])
|
24
24
|
@script_url = script_listing.urls.build
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
# EDIT - Script Athors
|
28
28
|
def edit
|
29
29
|
script_listing = Script::Listing.find(params[:listing_id])
|
30
30
|
@script_url = script_listing.urls.find(params[:id])
|
31
31
|
end
|
32
|
-
|
32
|
+
|
33
33
|
# POST - Script Athors
|
34
34
|
def create
|
35
35
|
@script_listing = Script::Listing.find(params[:listing_id])
|
@@ -40,7 +40,7 @@ module Phcscriptcdn
|
|
40
40
|
render :new
|
41
41
|
end
|
42
42
|
end
|
43
|
-
|
43
|
+
|
44
44
|
# PATCH/PUT - Script Athors
|
45
45
|
def update
|
46
46
|
if @script_url.update(script_url_params)
|
@@ -49,7 +49,7 @@ module Phcscriptcdn
|
|
49
49
|
render :edit
|
50
50
|
end
|
51
51
|
end
|
52
|
-
|
52
|
+
|
53
53
|
# DELETE - Script Athors
|
54
54
|
def destroy
|
55
55
|
@script_listing = Script::Listing.find(params[:listing_id])
|
@@ -57,18 +57,18 @@ module Phcscriptcdn
|
|
57
57
|
@script_url.destroy
|
58
58
|
redirect_to script_listing_urls_path, notice: 'Author was successfully destroyed.'
|
59
59
|
end
|
60
|
-
|
60
|
+
|
61
61
|
private
|
62
|
-
|
62
|
+
|
63
63
|
# Common Callbacks
|
64
64
|
def set_script_url
|
65
65
|
@script_url = Script::Url.find(params[:id])
|
66
66
|
end
|
67
|
-
|
67
|
+
|
68
68
|
# Whitelists
|
69
69
|
def script_url_params
|
70
70
|
params.require(:script_url).permit(:scripturl, :scripturlrelease, :scripturlcdnupdate, :user_id, :user_name, :listing_id, :version_id, :extension_id)
|
71
71
|
end
|
72
|
-
|
72
|
+
|
73
73
|
end
|
74
74
|
end
|