form_core 0.0.9 → 0.0.10

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: 45ab9fa48bd545c3a9688253378709411aea2dd6
4
- data.tar.gz: 7c4149140fcfeb34325809afb6b9a9f833376ad3
3
+ metadata.gz: 8b31039c62309ba6b937b5d46316981d2b004992
4
+ data.tar.gz: e5579a0fcfbf52f43d036f785c8db1497f6beb08
5
5
  SHA512:
6
- metadata.gz: 7042b60a81fdab6c4bbe860147c24304a2f292bf353723674a4de0f1f87150cc4fa3164c255decf183d23db140ddb052bd8ffb9477900249323bdc30784183a2
7
- data.tar.gz: bade2bd59dd823aa1dcfc37d0105c0d5272cdf1314539c9d07e890de43d3d512a750fb43c2abd4ca7b685739ca512211af8cf15b365ffa8601149a3e280949c9
6
+ metadata.gz: 86c275e9809a0af77af74e834e23ec665f585015a008ceebc05fac72636b4c1ce4138e501ecca7b918d917bed0d1b825d53f9e40394af94291d394c1925480bd
7
+ data.tar.gz: 33abbe43d3da57763e5c012b22dab8994621605dfdb8876943dfd1d3149d1cf34bfc2cbbdb7228728922ac81cc78c47a89094b2944372e54762211efb9c52d43
@@ -4,7 +4,6 @@ class CreateFields < ActiveRecord::Migration[5.1]
4
4
  t.string :name, null: false
5
5
  t.integer :accessibility, null: false
6
6
  t.text :validations
7
- t.text :static_default_value
8
7
  t.text :options
9
8
  t.string :type, null: false, index: true
10
9
  t.references :form, foreign_key: {to_table: :form_core_forms}
@@ -10,7 +10,6 @@ module FormCore::Concerns
10
10
 
11
11
  serialize :validations
12
12
  serialize :options
13
- serialize :static_default_value
14
13
 
15
14
  validates :name,
16
15
  presence: true,
@@ -40,7 +39,7 @@ module FormCore::Concerns
40
39
  end
41
40
 
42
41
  def default_value
43
- ActiveModel::Type.lookup(stored_type).cast(static_default_value)
42
+ nil
44
43
  end
45
44
 
46
45
  def interpret_to(model, overrides: {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FormCore
4
- VERSION = "0.0.9"
4
+ VERSION = "0.0.10"
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.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - jasl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-06 00:00:00.000000000 Z
11
+ date: 2017-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.6.12
89
+ rubygems_version: 2.6.13
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: A Rails engine providing ability to generate dynamic form.