form_core 0.0.8 → 0.0.9

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: 5779e04e58d6b9ac5ac2ee67774981334045979c
4
- data.tar.gz: a14c6f980431da776467bf80c7b02d437de365ba
3
+ metadata.gz: 45ab9fa48bd545c3a9688253378709411aea2dd6
4
+ data.tar.gz: 7c4149140fcfeb34325809afb6b9a9f833376ad3
5
5
  SHA512:
6
- metadata.gz: 5c79e9b062200bd198812b6c33c3d7280d4ad334322ca26d59514b782e97e7bdec94a17e153ca31cd9ea95cd23447928fa7ff59405274d56d06cfd7957764be3
7
- data.tar.gz: 6e72e1414d78d00330999c7976b29ff307a7149327b0efb887a276b8093abf2793d99637f83d3627598f81a9972826672ac511afcd492716d798b25e9f9a3d98
6
+ metadata.gz: 7042b60a81fdab6c4bbe860147c24304a2f292bf353723674a4de0f1f87150cc4fa3164c255decf183d23db140ddb052bd8ffb9477900249323bdc30784183a2
7
+ data.tar.gz: bade2bd59dd823aa1dcfc37d0105c0d5272cdf1314539c9d07e890de43d3d512a750fb43c2abd4ca7b685739ca512211af8cf15b365ffa8601149a3e280949c9
@@ -3,5 +3,7 @@
3
3
  module FormCore
4
4
  class Field < ApplicationRecord
5
5
  include FormCore::Concerns::Models::Field
6
+
7
+ belongs_to :form, touch: true
6
8
  end
7
9
  end
@@ -3,5 +3,7 @@
3
3
  module FormCore
4
4
  class Form < ApplicationRecord
5
5
  include FormCore::Concerns::Models::Form
6
+
7
+ has_many :fields
6
8
  end
7
9
  end
@@ -6,8 +6,6 @@ module FormCore::Concerns
6
6
  extend ActiveSupport::Concern
7
7
 
8
8
  included do
9
- belongs_to :form, touch: true
10
-
11
9
  enum accessibility: {read_and_write: 0, read_only: 1, hidden: 2}
12
10
 
13
11
  serialize :validations
@@ -5,10 +5,6 @@ module FormCore::Concerns
5
5
  module Form
6
6
  extend ActiveSupport::Concern
7
7
 
8
- included do
9
- has_many :fields
10
- end
11
-
12
8
  def to_virtual_model(model_name: "Form",
13
9
  fields_scope: proc { |fields| fields },
14
10
  overrides: {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FormCore
4
- VERSION = "0.0.8"
4
+ VERSION = "0.0.9"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: form_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - jasl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-07 00:00:00.000000000 Z
11
+ date: 2017-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails