valle 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/valle/hooks.rb +4 -2
- data/lib/valle/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: a2397c0090d814c90a8741d75a8f7f180577cbe3
|
4
|
+
data.tar.gz: 54a8ea77e0490b1a287368c8ec5a478a355170cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaae640af84fb06801a8558f59b609e4df68b6805a8259272e09afc0d5c5ded123578aa1f044b32fddfdfec09db8de67ae7ce6599fde7449ffdbb8f8f1d768f4
|
7
|
+
data.tar.gz: 011c1cc4f6a3cf91ffee20cc197a6f4bbec5e034b6efef1dd36c4e1475dcdd8212ea80d3c6d521db9f2296c211852f946de4b27f34b66afbfb2ebd9917c04b73
|
data/CHANGELOG.md
CHANGED
data/lib/valle/hooks.rb
CHANGED
@@ -47,10 +47,12 @@ module Valle
|
|
47
47
|
# @note ActiveRecord::Validations should be defined at this point
|
48
48
|
#
|
49
49
|
def can_add_validators?(subclass, inherited_from_class)
|
50
|
+
# skip AR::SchemaMigration (AR >= 4.X)
|
51
|
+
return false if (defined?(ActiveRecord::SchemaMigration) && subclass == ActiveRecord::SchemaMigration)
|
52
|
+
|
50
53
|
Valle.can_process_model?(subclass.model_name) &&
|
51
54
|
inherited_from_class == ActiveRecord::Base &&
|
52
|
-
subclass.table_exists?
|
53
|
-
(defined?(ActiveRecord::SchemaMigration) && subclass != ActiveRecord::SchemaMigration) # skip AR::SchemaMigration (AR >= 4.X)
|
55
|
+
subclass.table_exists?
|
54
56
|
end
|
55
57
|
end
|
56
58
|
end
|
data/lib/valle/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: valle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Kalyaev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|