modalfields 1.5.2 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/modalfields/modalfields.rb +1 -1
- data/modalfields.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.5.
|
|
1
|
+
1.5.3
|
|
@@ -102,7 +102,7 @@ module ModalFields
|
|
|
102
102
|
end
|
|
103
103
|
if ModalFields.validate(declaration)
|
|
104
104
|
@model.fields_info << declaration
|
|
105
|
-
if @model.columns.detect{|c| c.name==declaration.name.to_s}
|
|
105
|
+
if @model.table_exists? && @model.columns.detect{|c| c.name==declaration.name.to_s}
|
|
106
106
|
if declaration.specifiers.include?(:unique)
|
|
107
107
|
@model.validates_uniqueness_of declaration.name
|
|
108
108
|
end
|
data/modalfields.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "modalfields"
|
|
8
|
-
s.version = "1.5.
|
|
8
|
+
s.version = "1.5.3"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Javier Goizueta"]
|
|
12
|
-
s.date = "2012-10-
|
|
12
|
+
s.date = "2012-10-24"
|
|
13
13
|
s.description = "ModelFields is a Rails plugin that adds fields declarations to your models."
|
|
14
14
|
s.email = "jgoizueta@gmail.com"
|
|
15
15
|
s.extra_rdoc_files = [
|
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.5.
|
|
4
|
+
version: 1.5.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-10-
|
|
12
|
+
date: 2012-10-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: modalsettings
|
|
@@ -233,7 +233,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
233
233
|
version: '0'
|
|
234
234
|
segments:
|
|
235
235
|
- 0
|
|
236
|
-
hash:
|
|
236
|
+
hash: -498931734787340260
|
|
237
237
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
238
238
|
none: false
|
|
239
239
|
requirements:
|