cm_page_builder-rails 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 8b499190f1a37b5e7814f23963ed1a1e4c91206c5b318766a08e800b00dd1b8e
4
- data.tar.gz: 9e5036922867ebe90b64df0f70145132be417949d38116564912a4b30e295709
3
+ metadata.gz: 9c565b0eb10f6aac2e32bf557363ad4adad6b6cacd877fe0e73312898571ba23
4
+ data.tar.gz: 85994e956a352354383ba62cc5d9d0369a23f0474939ebced0ab9ad081da226d
5
5
  SHA512:
6
- metadata.gz: 22fcd8aaf9960982c8b85327c7f57facd5a0e1b2abcf237677fa6523247cf6cb814b7b847cb99497455ffc2e24f72ccd426e50303baaeeff24dce1952b92a90b
7
- data.tar.gz: 5a861d9187ef9ef9ef7ff73921880767d64e7dc4545b7335df91ad256c4e16fcd0ddb2312495bf905eeb686edb10cd57ab3c1dff384736df54e03e405fb896fc
6
+ metadata.gz: 48f3f40b06cfbc04e96084b58b197ea7a5bfb9efc8870d08cccfaeb7e943b2bcc7eb9231b6ac7c3942eec73b1630c0404e0648bfe51e798d524873f46ef57603
7
+ data.tar.gz: d001bd198be2368d7f990b478e760b52260dcc7d683da23878a03703b08a86920dbf78d2524ec1eb61af6b30fc8c96db79ca5df0b62da7493e98b138ea0ef2ea
@@ -1,7 +1,10 @@
1
1
  module CmPageBuilder::Rails
2
2
  class PageComponent < ApplicationRecord
3
- belongs_to :page
3
+ belongs_to :page
4
4
 
5
5
  has_one_attached :component_attachment
6
+
7
+ default_scope { order(position: :asc) }
8
+
6
9
  end
7
10
  end
@@ -1,5 +1,5 @@
1
1
  module CmPageBuilder
2
2
  module Rails
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm_page_builder-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camilo Ernesto Forero Junco
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-23 00:00:00.000000000 Z
11
+ date: 2019-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails