effective_assets 1.5.5 → 1.5.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9247ad0289b7de53ecc55998f27a453b9cb46588
|
4
|
+
data.tar.gz: 079f76d639fb5fb04d12f57867c145ebcd18cac7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a979c933cb329f7182e35b400048e86f4c8944f25a47396461256f144dafbd08f3306d87d6634885f90ead9e4d36f41e1de8959b74393c7ce4a6f1ffa1c300ae
|
7
|
+
data.tar.gz: b4ce0c3003cde0720839887c1ba8da57489de6e2cc32cf6de8e65c1a7609883012227ea9028cfca9c6148e66cf4262d6007bf4f7abf6970a069e7bf3d2770bff
|
@@ -13,8 +13,8 @@
|
|
13
13
|
%img{:src => asset_path('effective_assets/icon_close.png'), :alt => 'Remove'}
|
14
14
|
|
15
15
|
- if attachment.persisted?
|
16
|
-
= hidden_field_tag(attachable_object_name
|
17
|
-
= hidden_field_tag(attachable_object_name
|
18
|
-
= hidden_field_tag(attachable_object_name
|
19
|
-
= hidden_field_tag(attachable_object_name
|
20
|
-
= hidden_field_tag(attachable_object_name
|
16
|
+
= hidden_field_tag("#{attachable_object_name}[attachments_attributes][#{uid}][id]", attachment.id)
|
17
|
+
= hidden_field_tag("#{attachable_object_name}[attachments_attributes][#{uid}][asset_id]", attachment.asset_id)
|
18
|
+
= hidden_field_tag("#{attachable_object_name}[attachments_attributes][#{uid}][box]", attachment.box)
|
19
|
+
= hidden_field_tag("#{attachable_object_name}[attachments_attributes][#{uid}][_destroy]", attachment.marked_for_destruction? ? 1 : nil, :class => 'asset-box-remove')
|
20
|
+
= hidden_field_tag("#{attachable_object_name}[attachments_attributes][#{uid}][position]", 1)
|
@@ -30,7 +30,8 @@
|
|
30
30
|
%i.glyphicon.glyphicon-trash
|
31
31
|
|
32
32
|
- if attachment.persisted?
|
33
|
-
= hidden_field_tag(attachable_object_name
|
34
|
-
= hidden_field_tag(attachable_object_name
|
35
|
-
= hidden_field_tag(attachable_object_name
|
36
|
-
= hidden_field_tag(attachable_object_name
|
33
|
+
= hidden_field_tag("#{attachable_object_name}[attachments_attributes][#{uid}][id]", attachment.id)
|
34
|
+
= hidden_field_tag("#{attachable_object_name}[attachments_attributes][#{uid}][asset_id]", attachment.asset_id)
|
35
|
+
= hidden_field_tag("#{attachable_object_name}[attachments_attributes][#{uid}][box]", attachment.box)
|
36
|
+
= hidden_field_tag("#{attachable_object_name}[attachments_attributes][#{uid}][_destroy]", attachment.marked_for_destruction? ? 1 : nil, :class => 'asset-box-remove')
|
37
|
+
= hidden_field_tag("#{attachable_object_name}[attachments_attributes][#{uid}][position]", 1)
|
@@ -16,8 +16,8 @@
|
|
16
16
|
%img{:src => asset_path('effective_assets/icon_close.png'), :alt => 'Remove'}
|
17
17
|
|
18
18
|
- if attachment.persisted?
|
19
|
-
= hidden_field_tag(attachable_object_name
|
20
|
-
= hidden_field_tag(attachable_object_name
|
21
|
-
= hidden_field_tag(attachable_object_name
|
22
|
-
= hidden_field_tag(attachable_object_name
|
23
|
-
= hidden_field_tag(attachable_object_name
|
19
|
+
= hidden_field_tag("#{attachable_object_name}[attachments_attributes][#{uid}][id]", attachment.id)
|
20
|
+
= hidden_field_tag("#{attachable_object_name}[attachments_attributes][#{uid}][asset_id]", attachment.asset_id)
|
21
|
+
= hidden_field_tag("#{attachable_object_name}[attachments_attributes][#{uid}][box]", attachment.box)
|
22
|
+
= hidden_field_tag("#{attachable_object_name}[attachments_attributes][#{uid}][_destroy]", attachment.marked_for_destruction? ? 1 : nil, :class => 'asset-box-remove')
|
23
|
+
= hidden_field_tag("#{attachable_object_name}[attachments_attributes][#{uid}][position]", 1)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|