ack_rails_admin_jcrop 0.0.6 → 0.0.7

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: 24cc6dda9eab3d4cf24c3b75a4115866bf0f6978
4
- data.tar.gz: bd02b34defdea2619fd0483d586945e421db3a58
3
+ metadata.gz: b468ec7ed7fd6e9589564fea0830ba7690b4f110
4
+ data.tar.gz: 82be20b293c12beff630ef9b024668ecf3cdeb9f
5
5
  SHA512:
6
- metadata.gz: 505470dd81fde11cd61cefabc4b40306f9fb6641f5e6ba5cccece7c91c3043c2f99e4ef940611eb08d387e53497389bd1d8aebb9489729056db4691d78e3fc60
7
- data.tar.gz: ca476454431ab5dee0897d900c57c4b2e22be6b7e4e9543bc6f3489003f18fb5eae962602025a40888f446cd690cba06d799bcedbc36eac3cb7a12aeb6afbafa
6
+ metadata.gz: 510e89b66cc86f2203b828e7011ca8bf308b14aca239d7c0de6c31d06840c274b4ce333d987f069f155263537a30d0f2de390103ec461398bf5e845247e16804
7
+ data.tar.gz: 02fa9c23b526a081128d8c39fd5724b5e0b1b34d2722bea1e9125685209400c37f10af0c0732b6eb49ea025cde7c30e631d66645c90b3b6a1f5e4980e9f58862
@@ -23,7 +23,8 @@
23
23
  = value
24
24
  = form.file_field(field.name, field.html_attributes.reverse_merge({data: {fileupload: true, rails_admin_jcrop_options: rails_admin_jcrop_options } }))
25
25
 
26
- - url = jcrop_path(model_name: form.object.class.to_param, modal: true, id: form.object.id, field: field.name, fit_image: field.fit_image)
26
+ - model_name = form.object.class.to_param.gsub("::", "~").underscore
27
+ - url = jcrop_path(model_name: model_name, modal: true, id: form.object.id, field: field.name, fit_image: field.fit_image)
27
28
  - link_data = {link: url, thumb: field.thumb_method || "original"}
28
29
  = link_to 'Edit Image', '#', data: link_data, style: 'display:none', class: "jcrop_handle"
29
30
 
@@ -36,4 +37,4 @@
36
37
 
37
38
  = form.check_box field.delete_method, style: 'display:none;'
38
39
  - if field.cache_method
39
- = form.hidden_field field.cache_method
40
+ = form.hidden_field field.cache_method
@@ -1,3 +1,3 @@
1
1
  module RailsAdminJcrop
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ack_rails_admin_jcrop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
- - ack43
7
+ - Alexander Kiseliev
8
8
  - Jan Xie
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-19 00:00:00.000000000 Z
12
+ date: 2016-02-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -56,7 +56,7 @@ dependencies:
56
56
  description: Jcrop plugin for rails admin. Forked from https://github.com/janx/rails_admin_jcrop
57
57
  Image cropping made easy!
58
58
  email:
59
- - i43ack@gmail.com
59
+ - dev@enjoycreate.ru
60
60
  - jan.h.xie@gmail.com
61
61
  executables: []
62
62
  extensions: []
@@ -93,7 +93,7 @@ files:
93
93
  - vendor/assets/stylesheets/rails_admin/Jcrop.gif
94
94
  - vendor/assets/stylesheets/rails_admin/jquery.Jcrop.css
95
95
  - vendor/assets/stylesheets/rails_admin/jquery.Jcrop.min.css
96
- homepage: https://github.com/ack43/rails_admin_jcrop
96
+ homepage: https://github.com/enjoycreative/rails_admin_jcrop
97
97
  licenses: []
98
98
  metadata: {}
99
99
  post_install_message:
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.4.6
115
+ rubygems_version: 2.4.7
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Jcrop plugin for rails admin. Forked from https://github.com/janx/rails_admin_jcrop