form_core 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/form_core.rb +0 -18
- data/lib/form_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 636ec9a02eefe5cbe6c9d48a1c4f2bcd24993744
|
4
|
+
data.tar.gz: 15eb6842057b88bdf2852e1f6bd184312efd2989
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3950f8572fc0c8fe2a94537a1fa8a3fa57eb65d13fd1eaf3a6b92b3a7ba06b67ada89cbb943bff69550f54432e79491953072cdb85fb88b041446dc26dad1c27
|
7
|
+
data.tar.gz: 8b16c5d66290f35a5f503564cd7c27b6d222099a564ea1cf0f91864070c1c6838f497ea9acdaa1c3c30656e9514fe11b432ed099df7a1a5eb5859c08f763566a
|
data/lib/form_core.rb
CHANGED
@@ -6,24 +6,6 @@ require "form_core/concerns/models/field"
|
|
6
6
|
|
7
7
|
module FormCore
|
8
8
|
class << self
|
9
|
-
def field_classes
|
10
|
-
@field_classes ||= Set.new
|
11
|
-
end
|
12
|
-
|
13
|
-
def register_field_class(klass)
|
14
|
-
unless klass && klass < Field && !klass.abstract_class?
|
15
|
-
raise ArgumentError, "#{klass} should be sub-class of #{Field} and can't be abstract class."
|
16
|
-
end
|
17
|
-
|
18
|
-
field_classes << klass
|
19
|
-
end
|
20
|
-
|
21
|
-
def register_field_classes(*classes)
|
22
|
-
classes.each do |klass|
|
23
|
-
register_field_class klass
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
9
|
def virtual_model_class
|
28
10
|
@virtual_model_class ||= VirtualModel
|
29
11
|
end
|
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.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jasl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|