cm_page_builder-rails 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/cm_page_builder/rails/page.rb +2 -4
- data/lib/cm_page_builder/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb8cb60af95314796041dcb3636d626bce3225a851dc35a03b0f7fef2683ee7f
|
4
|
+
data.tar.gz: 275d1733d69c98325a37d78f2caa613539f93d2f90c5d44b54e388c6145a6727
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15cff37e33a92c85155e0f3f1a0186441963fef8a5e9e5977d3c0eade95f2f3e2add98678b0a2d10434d9af5556c0793fd5dfd513c4a0f64aacb7d0aa54a5234
|
7
|
+
data.tar.gz: 0012f11661630abdddff3ec1d157ba339c934371205758b9a8ee1da31d2846688bfa6c7b0724958bc856adcb18341c5e7c090dfc406e722b24177e3ac4323f58
|
@@ -9,14 +9,12 @@ module CmPageBuilder::Rails
|
|
9
9
|
self.page_components.with_attached_component_attachment.select(:id, :uuid, :component_type, :position, :content).map do |component|
|
10
10
|
json_component = component.as_json.transform_keys! {|key| key.camelize(:lower)}
|
11
11
|
attachment = component.component_attachment.attachment
|
12
|
-
pp component.component_attachment
|
13
|
-
pp attachment
|
14
|
-
pp "======"
|
15
12
|
json_component["id"] = component[:uuid]
|
16
13
|
json_component["component_attachment"] = if attachment
|
17
14
|
{
|
18
15
|
filename: attachment.filename.to_s,
|
19
|
-
url: attachment.service_url
|
16
|
+
url: attachment.service_url,
|
17
|
+
dimensions: attachment.blob.metadata
|
20
18
|
}
|
21
19
|
end
|
22
20
|
json_component
|