ish_manager 0.1.8.34 → 0.1.8.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2825f4c0f04e4a145517192eb9bcdbe922a5598
|
4
|
+
data.tar.gz: 2ed8a041a4edd61485b0bed42ec5644b3829a2df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4361762e56f5757849561ca49d82a488b87d247727c524b18178d36122bf8d0de38f25ae79aa0dd7af325ad09c1a8868600abdef99add44bcfb5f54f00756c1
|
7
|
+
data.tar.gz: 0b55bdef7523c0b979329ea1d87a6a39e2ea18c407dc043c7e20d87e1d4af23ce5533f0508593d3a7bb5c7dc85d3e17197b3f765196cd2e12603594111710cf0
|
@@ -129,6 +129,7 @@ class IshManager::FeaturesController < IshManager::ApplicationController
|
|
129
129
|
elsif params[:site_id]
|
130
130
|
@resource = Site.find params[:site_id]
|
131
131
|
end
|
132
|
+
authorize! :destroy_feature, @resource
|
132
133
|
@feature = @resource.features.find params[:id]
|
133
134
|
if @feature.destroy
|
134
135
|
flash[:notice] = :'Success.'
|
@@ -20,6 +20,6 @@
|
|
20
20
|
.col-sm-3
|
21
21
|
.panel.panel-default
|
22
22
|
= link_to '[~]', edit_url.call( feature )
|
23
|
-
=
|
23
|
+
= button_to '[x]', delete_url.call( feature ), :method => :delete, :data => { :confirm => 'Are you sure?' }
|
24
24
|
= render 'ish_manager/features/item', :feature => feature
|
25
25
|
%hr
|