ack_rails_admin_jcrop 0.2.0 → 0.2.0.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 698b8b357ba91365e2858740badf4691f29cdeb3
|
4
|
+
data.tar.gz: 90d7f15e6ee4ef487c687b8dfcca7b194c03cd82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 157a1b1ffc77d37b259a96d35d538b0c439593db9e904d9b5af135d8ef19ad17dc53bf58e13d3e41606e93b08100e45a1e7209d1c2ff18e8bda1daac30951cd1
|
7
|
+
data.tar.gz: fb3e7f822bd6f05bf5ed58952d596c31ce5f2b9054608653970bd9ec9900b26a1c651583740e7790bf6433a5e7c2de6546b78a582868b09fefea9692e3b669b4
|
@@ -7,14 +7,18 @@ module RailsAdminJcrop
|
|
7
7
|
|
8
8
|
def crop!(obj, field)
|
9
9
|
_field = obj.send(field)
|
10
|
-
_field.reprocess!
|
10
|
+
_field.reprocess!
|
11
|
+
|
12
|
+
# _field.reprocess!(*(_field.styles.keys - [:original]))
|
11
13
|
# _field.reprocess_without_saving_instance(*(_field.styles.keys - [:original]))
|
12
14
|
end
|
13
15
|
|
14
16
|
def crop(obj, field)
|
15
17
|
_field = obj.send(field)
|
18
|
+
_field.reprocess_without_saving_instance
|
19
|
+
|
16
20
|
# _field.reprocess!(*(_field.styles.keys - [:original]))
|
17
|
-
_field.reprocess_without_saving_instance(*(_field.styles.keys - [:original]))
|
21
|
+
# _field.reprocess_without_saving_instance(*(_field.styles.keys - [:original]))
|
18
22
|
end
|
19
23
|
end
|
20
24
|
end
|