ack_rails_admin_jcrop 0.0.5 → 0.0.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: bc6e1897a22ad026f5a537d0bd64744c9d1c1fc3
4
- data.tar.gz: c22328163bb2cd315a3117d0679f8930cafb9e0e
3
+ metadata.gz: 24cc6dda9eab3d4cf24c3b75a4115866bf0f6978
4
+ data.tar.gz: bd02b34defdea2619fd0483d586945e421db3a58
5
5
  SHA512:
6
- metadata.gz: 22b2b92358bbdddbe506617af53aed5c72dca05f0e42ad919ac03c0213d19a70a67f9468aae82fa6bad722b294bd5788a309c777d13e3459fe9b6520651f4056
7
- data.tar.gz: a1e007f3743a98d5bcc7c0967fd439d8e6788b715e73c551f379fe6aae8bbb91c62e01a438cb6c0adbaec6c0aaf999bf7c41f9244d125a5a330f6257da5d2588
6
+ metadata.gz: 505470dd81fde11cd61cefabc4b40306f9fb6641f5e6ba5cccece7c91c3043c2f99e4ef940611eb08d387e53497389bd1d8aebb9489729056db4691d78e3fc60
7
+ data.tar.gz: ca476454431ab5dee0897d900c57c4b2e22be6b7e4e9543bc6f3489003f18fb5eae962602025a40888f446cd690cba06d799bcedbc36eac3cb7a12aeb6afbafa
@@ -29,6 +29,7 @@
29
29
 
30
30
  - if field.optional? and field.errors.blank? and file and field.delete_method
31
31
  - onclick = "$(this).siblings('[type=checkbox]').click(); $(this).siblings('.toggle').toggle('slow'); jQuery(this).toggleClass('btn-danger btn-info'); return false;"
32
+ br
32
33
  = link_to "#", data: {toggle:'button'}, onclick: onclick, class: "btn btn-info" do
33
34
  i.icon-white.icon-trash
34
35
  = "#{I18n.t('admin.actions.delete.menu').capitalize} #{field.method_name}"
@@ -73,7 +73,7 @@ module RailsAdmin
73
73
  end
74
74
 
75
75
  base.register_instance_option(:delete_method) do
76
- nil
76
+ "delete_#{name}" if bindings[:object].respond_to?("delete_#{name}")
77
77
  end
78
78
  end
79
79
 
@@ -1,3 +1,3 @@
1
1
  module RailsAdminJcrop
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ack_rails_admin_jcrop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ack43
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-08 00:00:00.000000000 Z
12
+ date: 2015-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails