bootstrap_actioncell 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTMzZjJjYjZmYzdhMTQyODI1NTNjODRiNzIzYWE5OGY1ZTg2MTc2Ng==
4
+ MDAxNGY2MDc5YTM2MTFiYzQ4ZmU4MThmYmYxZjQ5M2E4ZmMyZDdjZQ==
5
5
  data.tar.gz: !binary |-
6
- YzU4YTY1YTViMGYyZGFjNDE0OTU3MDJlZWRkMDg2N2YzOWM3YmY0NA==
6
+ ZWQxMWI4MDBmZTA4OTVhN2QyMjgyZDFlZWM0MGFkMjFiZDEzNzM3MQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZDFjM2Y1Y2IxNjA0NTVlMjY1MDdkNzM5NmZlMDQzYjQ4M2UyZTdkMzc1Nzgw
10
- MjdmNGRjNTk2ZmYzYTBhMWEwM2VhM2ZjNzlmYzdjNTczNjhhYzJjMWY1MTRi
11
- YzUwNjE5MWRjOTFiMjZjYTZjMzNlMWMyOGU5MjJkNWI1MDRiNTk=
9
+ NmZiM2YwNTI5MGY0NTI4MWI5ZWQ5MGI0ZTYwNGMxMTIyOWRkYjA4N2ZlYjVk
10
+ YmM3ZjJmODM5MGY5Mjk5YmVlODkzYmRjZTg1NmZmOGRlZTBjOTU2NzUxY2Nk
11
+ OWM2NmMyNmU3ZmU1YzMzODkxYzM3N2IwYWU3NDgzNjRkYTYyMTI=
12
12
  data.tar.gz: !binary |-
13
- OTk5YWIxMTRjMTExMjY4MWE0ZTBiZDEzMWU0ZmQ5NzVkZTNlNjkxZDlhZTQz
14
- MjJkZDAzOGYwNThmOGQyY2RlY2NhMDM4NzcyODVkNTZlOTU4MmM0NzdlMjFi
15
- MDM0N2U4ZjI0MTdiZjZkZTQzNDEzNmIyOWMxZWY2YWUyMDZlZDM=
13
+ ZjU5YmJhOTc0ZmY1OWVhYzc4ZDlmNzE5N2MwMWRiODNkYjI2MzgyMjZlMTMw
14
+ MmYzMmM0OTM4YTJhZThiNDgyZWMyNTJkYjI4MDNmMGIwZWNlMDNlOWEzMTE2
15
+ MDJkZDQ1MTViNjM2NGIyM2QxMjExZmU1ZmQ1YjMyYjRjOTcxMTM=
@@ -18,7 +18,7 @@
18
18
  %i.caret
19
19
  %ul.dropdown-menu
20
20
  - actions.each do |a|
21
- - a[:name] ||= "Untitled action"
21
+ - a[:name] ||= "[Set my :name attribute]"
22
22
  - a[:path] ||= "#"
23
23
  - a[:options] ||= {}
24
24
  %li= link_to a[:name], a[:path], a[:options]
@@ -9,8 +9,8 @@ module BootstrapActioncell
9
9
  :delete_icon => "remove"
10
10
  }.deep_merge(options)
11
11
  unless options[:clear_default_buttons]
12
- buttons << {:path => url_for(:controller => resource.class.name.demodulize.underscore.pluralize, :action => 'edit', :id => resource.id), :options => {:class => "btn btn-mini", "data-toggle" => "tooltip", :title => "Edit"}, :icon => options[:edit_icon]} if options[:edit_button] and defined?(current_ability) and can? :update, resource
13
- buttons << {:path => url_for(:controller => resource.class.name.demodulize.underscore.pluralize, :action => 'destroy', :id => resource.id), :options => {: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(" ")}?"}, :icon => options[:delete_icon]} if options[:delete_button] and defined?(current_ability) and can? :destroy, resource
12
+ buttons << {:path => url_for(:controller => resource.class.name.demodulize.underscore.pluralize, :action => 'edit', :id => resource.id), :options => {:class => "btn btn-mini", "data-toggle" => "tooltip", :title => "Edit"}, :icon => options[:edit_icon]} if options[:edit_button] and (!defined?(current_ability) or can? :update, resource)
13
+ buttons << {:path => url_for(:controller => resource.class.name.demodulize.underscore.pluralize, :action => 'destroy', :id => resource.id), :options => {: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(" ")}?"}, :icon => options[:delete_icon]} if options[:delete_button] and (!defined?(current_ability) or can? :destroy, resource)
14
14
  end
15
15
  render :partial => "bootstrap_actioncell/buttons", :locals => {:resource => resource, :buttons => buttons, :actions => actions}
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module BootstrapActioncell
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
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.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith