bootstrap_actioncell 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,10 +5,12 @@
5
5
  != link_to b[:path], b[:options] do
6
6
  %i{:class => "icon-#{b[:icon]}"}
7
7
 
8
- != link_to url_for(:controller => resource.class.name.demodulize.underscore.pluralize, :action => 'edit', :id => resource.id), {:class => "btn btn-mini", "data-toggle" => "tooltip", :title => "Edit"} do
9
- %i.icon-pencil
10
- != link_to url_for(:controller => resource.class.name.demodulize.underscore.pluralize, :action => 'destroy', :id => resource.id), {:class => "btn btn-mini", "data-toggle" => "tooltip", :title => "Delete", :method => "delete", :confirm => "Are you sure you want to delete this #{resource.class.name.demodulize.underscore.split("_").join(" ")}?"} do
11
- %i.icon-remove-2
8
+ - if current_ability.blank? or can? :update, resource
9
+ != link_to url_for(:controller => resource.class.name.demodulize.underscore.pluralize, :action => 'edit', :id => resource.id), {:class => "btn btn-mini", "data-toggle" => "tooltip", :title => "Edit"} do
10
+ %i.icon-pencil
11
+ - if current_ability.blank? or can? :destroy, resource
12
+ != link_to url_for(:controller => resource.class.name.demodulize.underscore.pluralize, :action => 'destroy', :id => resource.id), {:class => "btn btn-mini", "data-toggle" => "tooltip", :title => "Delete", :method => "delete", :confirm => "Are you sure you want to delete this #{resource.class.name.demodulize.underscore.split("_").join(" ")}?"} do
13
+ %i.icon-remove-2
12
14
 
13
15
  - if actions.any?
14
16
  .btn-group.pull-right
@@ -1,3 +1,3 @@
1
1
  module BootstrapActioncell
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_actioncell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-10 00:00:00.000000000 Z
12
+ date: 2013-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  segments:
145
145
  - 0
146
- hash: 714956646052944457
146
+ hash: 3060541242513509291
147
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  none: false
149
149
  requirements:
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  segments:
154
154
  - 0
155
- hash: 714956646052944457
155
+ hash: 3060541242513509291
156
156
  requirements: []
157
157
  rubyforge_project:
158
158
  rubygems_version: 1.8.25