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: 86334fc75c5dbee29794846fc94f18b672d23b4b
4
- data.tar.gz: f5e5dada0dc5d5d365bce2eb76161a5b8d562442
3
+ metadata.gz: e2825f4c0f04e4a145517192eb9bcdbe922a5598
4
+ data.tar.gz: 2ed8a041a4edd61485b0bed42ec5644b3829a2df
5
5
  SHA512:
6
- metadata.gz: 428b6106487c9521d72238458741f421a7e2365885abfbe4775e1aa4d2dbdebdc53cca5ccfc0d0369ed15d8c6a2585f9ed3a89553a304464942d63af3833e65e
7
- data.tar.gz: 21006383d18c10feefe7cd6747d8432d9c9fae653f783fd376b1d5ef3415415e7328ab0d70e549d054b0159a807e0267a111428578b4f0c4c2f4442e71cc4143
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
- = link_to '[x]', delete_url.call( feature ), :method => :delete, :data => { :confirm => 'Are you sure?' }
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.34
4
+ version: 0.1.8.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox