phcscriptcdnpro 1.12.0 → 1.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcscriptcdnpro/scriptcdn/authors_controller.rb +3 -3
- data/app/controllers/phcscriptcdnpro/scriptcdn/informations_controller.rb +3 -3
- data/app/controllers/phcscriptcdnpro/scriptcdn/mains_controller.rb +3 -3
- data/app/controllers/phcscriptcdnpro/scriptcdn/versions_controller.rb +3 -3
- data/app/views/phcscriptcdnpro/scriptcdn/informations/edit.html.erb +1 -1
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c717ecf511fcca1eb8e19b677bc90cf18c2df737
|
4
|
+
data.tar.gz: 427ad9529946eeb5f6417a825541e51f58fea872
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bac0ee5974e1c512fa9c01ac617308b1962995f288b8231679974dd3a2a69d23258a92f5b80258c27de3771238cb8ee060d4aeae5e2a37ff281567ef3753618
|
7
|
+
data.tar.gz: e33419c0db70d533ba3609aa1453e1561599f49b6049c1220371c14579cfb9ca7d904adaa05514590a19ec394b92897b0971a36c4e83911386c30285db4cf9f2
|
@@ -31,7 +31,7 @@ module Phcscriptcdnpro
|
|
31
31
|
@scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
|
32
32
|
@scriptcdn_author = @scriptcdn_main.authors.create(scriptcdn_author_params)
|
33
33
|
if @scriptcdn_author.save
|
34
|
-
redirect_to
|
34
|
+
redirect_to scriptcdn_main_authors_path, notice: 'Author was successfully created.'
|
35
35
|
else
|
36
36
|
render :new
|
37
37
|
end
|
@@ -40,7 +40,7 @@ module Phcscriptcdnpro
|
|
40
40
|
# PATCH/PUT Author
|
41
41
|
def update
|
42
42
|
if @scriptcdn_author.update(scriptcdn_author_params)
|
43
|
-
redirect_to
|
43
|
+
redirect_to scriptcdn_main_authors_path, notice: 'Author was successfully updated.'
|
44
44
|
else
|
45
45
|
render :edit
|
46
46
|
end
|
@@ -51,7 +51,7 @@ module Phcscriptcdnpro
|
|
51
51
|
@scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
|
52
52
|
@scriptcdn_author = @scriptcdn_main.authors.find(params[:id])
|
53
53
|
@scriptcdn_author.destroy
|
54
|
-
redirect_to
|
54
|
+
redirect_to scriptcdn_main_authors_path, notice: 'Author was successfully destroyed.'
|
55
55
|
end
|
56
56
|
|
57
57
|
private
|
@@ -31,7 +31,7 @@ module Phcscriptcdnpro
|
|
31
31
|
@scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
|
32
32
|
@scriptcdn_information = @scriptcdn_main.informations.create(scriptcdn_information_params)
|
33
33
|
if @scriptcdn_information.save
|
34
|
-
redirect_to
|
34
|
+
redirect_to scriptcdn_main_informations_path, notice: 'Information was successfully created.'
|
35
35
|
else
|
36
36
|
render :new
|
37
37
|
end
|
@@ -40,7 +40,7 @@ module Phcscriptcdnpro
|
|
40
40
|
# PATCH/PUT Script Information
|
41
41
|
def update
|
42
42
|
if @scriptcdn_information.update(scriptcdn_information_params)
|
43
|
-
redirect_to
|
43
|
+
redirect_to scriptcdn_main_informations_path, notice: 'Information was successfully updated.'
|
44
44
|
else
|
45
45
|
render :edit
|
46
46
|
end
|
@@ -51,7 +51,7 @@ module Phcscriptcdnpro
|
|
51
51
|
@scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
|
52
52
|
@scriptcdn_information = @scriptcdn_main.informations.find(params[:id])
|
53
53
|
@scriptcdn_information.destroy
|
54
|
-
redirect_to
|
54
|
+
redirect_to scriptcdn_main_informations_path, notice: 'Information was successfully destroyed.'
|
55
55
|
end
|
56
56
|
|
57
57
|
private
|
@@ -26,7 +26,7 @@ module Phcscriptcdnpro
|
|
26
26
|
def create
|
27
27
|
@scriptcdn_main = Scriptcdn::Main.new(scriptcdn_main_params)
|
28
28
|
if @scriptcdn_main.save
|
29
|
-
redirect_to
|
29
|
+
redirect_to scriptcdn_mains_path, notice: 'Script was successfully created.'
|
30
30
|
else
|
31
31
|
render :new
|
32
32
|
end
|
@@ -35,7 +35,7 @@ module Phcscriptcdnpro
|
|
35
35
|
# PATCH/PUT Script
|
36
36
|
def update
|
37
37
|
if @scriptcdn_main.update(scriptcdn_main_params)
|
38
|
-
redirect_to
|
38
|
+
redirect_to scriptcdn_mains_path, notice: 'Script was successfully updated.'
|
39
39
|
else
|
40
40
|
render :edit
|
41
41
|
end
|
@@ -44,7 +44,7 @@ module Phcscriptcdnpro
|
|
44
44
|
# DELETE Script
|
45
45
|
def destroy
|
46
46
|
@scriptcdn_main.destroy
|
47
|
-
redirect_to
|
47
|
+
redirect_to scriptcdn_mains_path, notice: 'Main was successfully destroyed.'
|
48
48
|
end
|
49
49
|
|
50
50
|
private
|
@@ -31,7 +31,7 @@ module Phcscriptcdnpro
|
|
31
31
|
@scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
|
32
32
|
@scriptcdn_version = @scriptcdn_main.versions.create(scriptcdn_version_params)
|
33
33
|
if @scriptcdn_version.save
|
34
|
-
redirect_to
|
34
|
+
redirect_to scriptcdn_main_versions_path, notice: 'Script version was successfully created.'
|
35
35
|
else
|
36
36
|
render :new
|
37
37
|
end
|
@@ -40,7 +40,7 @@ module Phcscriptcdnpro
|
|
40
40
|
# PATCH/PUT Script Version
|
41
41
|
def update
|
42
42
|
if @scriptcdn_version.update(scriptcdn_version_params)
|
43
|
-
redirect_to
|
43
|
+
redirect_to scriptcdn_main_versions_path, notice: 'Script version was successfully updated.'
|
44
44
|
else
|
45
45
|
render :edit
|
46
46
|
end
|
@@ -51,7 +51,7 @@ module Phcscriptcdnpro
|
|
51
51
|
@scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
|
52
52
|
@scriptcdn_version = @scriptcdn_main.versions.find(params[:id])
|
53
53
|
@scriptcdn_version.destroy
|
54
|
-
redirect_to
|
54
|
+
redirect_to scriptcdn_main_versions_path, notice: 'Script version was successfully destroyed.'
|
55
55
|
end
|
56
56
|
|
57
57
|
private
|