phcscriptcdnpro 1.11.5 → 1.11.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2daa814fc81805ea64893223dc33aaff10762d26
4
- data.tar.gz: c4c44b3c86a5c79d2b22859b3f84a843693f1b03
3
+ metadata.gz: a0addf8b489b23ebb55110c1bb6c612c8630333d
4
+ data.tar.gz: c5c3d7b5c6eb2a89b7289b721198051e87f15273
5
5
  SHA512:
6
- metadata.gz: 72006d7ff2741a186c7342d5347cb5beba8dd15fb50de288df3ed5fad34c5a73badaf07f2abcb65d15fb21aaeec623832031125e6155bd178afe98aa02e5030d
7
- data.tar.gz: a2d19ab3a829c5dc052fa8617eee17d8a6e4461692eebc1b9035081a3fe93cfa1a334db64f7cce1401c737a1d8d6ea205c04f277afcb64a40e5c2dfd16ff07ae
6
+ metadata.gz: 4798fbe0985147f8bcd5d6bce680986c27c8eb62595558d60cf96ee2e6fad63c7177e1058b3c4f40efd8931dd3209ea24e67173d7493a0680a6e61ab6db4bc67
7
+ data.tar.gz: dae165702d4be1f4ae13b89051dc80c50d3c4d8cd591572b3e0a72257419cfd5b6d7d1fbf7e7d85833ac0b738a85c3d93f400a8e0663ee3e1338b2b528b7414f
@@ -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 scriptcdn_informations_url, notice: 'Information was successfully created.'
34
+ redirect_to scriptcdn_main_informations_url, 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 scriptcdn_informations_url, notice: 'Information was successfully updated.'
43
+ redirect_to scriptcdn_main_informations_url, 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 scriptcdn_informations_url, notice: 'Information was successfully destroyed.'
54
+ redirect_to scriptcdn_main_informations_url, notice: 'Information 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_version = @scriptcdn_main.versions.create(scriptcdn_version_params)
33
33
  if @scriptcdn_version.save
34
- redirect_to scriptcdn_versions_url, notice: 'Script version was successfully created.'
34
+ redirect_to scriptcdn_main_versions_url, 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 scriptcdn_versions_url, notice: 'Script version was successfully updated.'
43
+ redirect_to scriptcdn_main_versions_url, 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 scriptcdn_versions_url, notice: 'Script version was successfully destroyed.'
54
+ redirect_to scriptcdn_main_versions_url, notice: 'Script version was successfully destroyed.'
55
55
  end
56
56
 
57
57
  private
@@ -55,7 +55,7 @@
55
55
  <td><%= link_to scriptcdn_information.scriptcategory, edit_scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information) %></td>
56
56
  <td><%= link_to scriptcdn_information.scriptlicence, edit_scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information) %></td>
57
57
  <td><%= link_to scriptcdn_information.scriptplatform, edit_scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information) %></td>
58
- <td><%= link_to 'Destroy', scriptcdn_main_information, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %></td>
58
+ <td><%= link_to 'Destroy', scriptcdn_main_information_path(scriptcdn_information.main, scriptcdn_information), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %></td>
59
59
  </tr>
60
60
  <% end %>
61
61
  </tbody>
@@ -30,7 +30,7 @@
30
30
  <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
31
31
  </div>
32
32
  <div class="actions">
33
- <%= link_to new_scriptcdn_main_version_path, class: "btn blue-chambray" do %>
33
+ <%= link_to phcscriptcdnpro.new_scriptcdn_main_version_path, class: "btn blue-chambray" do %>
34
34
  <i class="fa fa-plus"></i> Add a New Script Version
35
35
  <% end %>
36
36
  </div>
@@ -49,7 +49,7 @@
49
49
  <% @scriptcdn_versions.each do |scriptcdn_version| %>
50
50
  <tr>
51
51
  <td><%= link_to scriptcdn_version.version, edit_scriptcdn_main_version_path(scriptcdn_version.main, scriptcdn_version) %></td>
52
- <td><%= link_to 'Destroy', scriptcdn_main_version, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %></td>
52
+ <td><%= link_to 'Destroy', scriptcdn_main_version_path(scriptcdn_version.main, scriptcdn_version), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %></td>
53
53
  </tr>
54
54
  <% end %>
55
55
  </tbody>
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "1.11.5"
2
+ VERSION = "1.11.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdnpro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.5
4
+ version: 1.11.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts