modalfields 1.4.4 → 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/modalfields/modalfields.rb +3 -0
- data/modalfields.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.5
|
@@ -105,6 +105,9 @@ module ModalFields
|
|
105
105
|
if declaration.specifiers.include?(:unique)
|
106
106
|
@model.validates_uniqueness_of declaration.name
|
107
107
|
end
|
108
|
+
if declaration.specifiers.include?(:required)
|
109
|
+
@model.validates_presence_of declaration.name
|
110
|
+
end
|
108
111
|
end
|
109
112
|
end
|
110
113
|
def timestamps
|
data/modalfields.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: modalfields
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -232,7 +232,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
232
232
|
version: '0'
|
233
233
|
segments:
|
234
234
|
- 0
|
235
|
-
hash:
|
235
|
+
hash: -744716552947708725
|
236
236
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
237
|
none: false
|
238
238
|
requirements:
|