form_core 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20170430190404_create_forms.rb +0 -1
- data/lib/form_core/concerns/models/form.rb +0 -10
- data/lib/form_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fde099a67585eb039df1f5674102caae42faa428e3fccbd06b08f5bbb3de740
|
4
|
+
data.tar.gz: ca0963efc74b13e27e1d9539a5d75d43da2ceb1a5f6c2d00f36da727055ee6c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91b88b510441db3e7b3397bb12be4b6466303394adba480e5f6e3c48d7f726bccc6a244309d9f58a957897bb64492ce8a861e2c41e7e4b504968ab0bcaa1e425
|
7
|
+
data.tar.gz: db1300da508e1748fe3008aef50b9d2fdd71ad314e6c9689487c8a04a0ca79991a394b0fc838ee369f33bdd9b0d60b74db41a8f6ed841989b8c9dd2d6995fcae
|
@@ -5,16 +5,6 @@ module FormCore::Concerns
|
|
5
5
|
module Form
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
|
8
|
-
NAME_REGEX = /\A[a-z][a-z_0-9]*\z/.freeze
|
9
|
-
|
10
|
-
included do
|
11
|
-
validates :name,
|
12
|
-
presence: true,
|
13
|
-
uniqueness: true,
|
14
|
-
exclusion: { in: FormCore.reserved_names },
|
15
|
-
format: { with: NAME_REGEX }
|
16
|
-
end
|
17
|
-
|
18
8
|
def to_virtual_model(model_name: "Form",
|
19
9
|
fields_scope: proc { |fields| fields },
|
20
10
|
overrides: {})
|
data/lib/form_core/version.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jasl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeentity
|