universe_compiler 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3ec4856a55e676294a38c02533d2107b7e315f6
|
4
|
+
data.tar.gz: 5aeb5dc2d1f22314b636f65e9a7b412d84bd3415
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07c5b9132b70584508c268827e9744c0b3fca36ac8bb0892401f4e797bcf58b7130fe6f5ee15d034cc442713331b171b52dc471e558d0f4583e0c3b846343812
|
7
|
+
data.tar.gz: aadd6b0fa6a59864896b1dcd94dbd4c9329d1f68c374b29a1325bcb49b2509042dcf2b131cfd1c42381f89c3afc38b776e8526d6f666e1c07ef02e57c5406539
|
@@ -16,6 +16,7 @@ module UniverseCompiler
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def entity_type=(value)
|
19
|
+
return if value == @entity_type
|
19
20
|
raise UniverseCompiler::Error, "You cannot change an entity type for class '#{self.name}'" unless @entity_type.nil?
|
20
21
|
raise UniverseCompiler::Error, 'Only Symbol is supported for entity_type !' unless value.is_a? Symbol
|
21
22
|
mapping = UniverseCompiler::Entity::TypeManagement.types_classes_mapping
|