ish_models 0.0.33.131 → 0.0.33.132
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gameui/map.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f281b9e5d6a0adaa051e580294f0159ccf7d6b8f94a30dc8c7c7c5ab867612f
|
4
|
+
data.tar.gz: 64c0861c9545bf87e52e035a86d673513a12f9e58eaa6cbdaf17a2c4ad483fd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a76dfdda32e3e49560731381aed9158d33473739f6dc155de46b79ea11ca6d0a3f87a4c3e2f08e641aab987ac5770dcdb276edf1a6b0844c2fc5aded7b91c5a
|
7
|
+
data.tar.gz: fff054a90f3161234d5c8fd6e4591dd0d0697d6ace50f40a422292517c1e6b09522c0ae2d8b3512be2126f69d54701b2f3e448090aa45824f000fe9f387cdeda
|
data/lib/gameui/map.rb
CHANGED
@@ -13,6 +13,11 @@ class ::Gameui::Map
|
|
13
13
|
belongs_to :parent, class_name: '::Gameui::Map', inverse_of: :childs, optional: true
|
14
14
|
has_many :childs, class_name: '::Gameui::Map', inverse_of: :parent
|
15
15
|
|
16
|
+
field :map_slug
|
17
|
+
def map
|
18
|
+
::Gameui::Map.where( slug: map_slug ).first
|
19
|
+
end
|
20
|
+
|
16
21
|
field :name
|
17
22
|
|
18
23
|
field :w, type: Integer
|