ish_models 0.0.33.145 → 0.0.33.146
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 +0 -2
- data/lib/gameui/marker.rb +2 -1
- data/lib/ish/user_profile.rb +1 -0
- data/lib/warbler/stock_watch.rb +1 -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: b97e9f9e4ed76c66c50d30bf5f4ec80f2532058e7a8b687a049bd87f07f98434
|
4
|
+
data.tar.gz: f27c9a996be622b67ace6dbba51473d83cb5b5af6e4c390a7f28cdd25e0ac1fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e936a99d778b9eea62cd3cb1895990ea3aaae2d756fcdefb2bedd21847d5d8f604fba33e88604965e35a7958325bee0b613a22a083a32e0728fb21970a61ceea
|
7
|
+
data.tar.gz: 3300a0193da951151944262f0d6065655a2ba9e63e560d66db668aa36b24f3d0dc7544517c0c0e171d141a0c6256c5416fc27380d5a63044cc6516a5f142ed0d
|
data/lib/gameui/map.rb
CHANGED
@@ -24,8 +24,6 @@ class ::Gameui::Map
|
|
24
24
|
# shareable, nonpublic
|
25
25
|
field :is_public, type: Boolean, default: true
|
26
26
|
has_and_belongs_to_many :shared_profiles, :class_name => 'Ish::UserProfile', :inverse_of => :shared_locations
|
27
|
-
default_scope ->{ where({ is_public: true, deleted_at: nil }).order_by({ slug: :desc }) }
|
28
|
-
## @TODO: index default scope, maybe instead of HABTM, use :thru for shared profiles. Make is poly anyway?
|
29
27
|
|
30
28
|
|
31
29
|
field :map_slug
|
data/lib/gameui/marker.rb
CHANGED
@@ -60,7 +60,8 @@ class ::Gameui::Marker
|
|
60
60
|
|
61
61
|
ITEM_TYPE_LOCATION = 'gameui-location'
|
62
62
|
ITEM_TYPE_MAP = 'gameui-map'
|
63
|
-
|
63
|
+
ITEM_TYPE_OBJ = 'gameui-obj'
|
64
|
+
ITEM_TYPES = [ ITEM_TYPE_LOCATION, ITEM_TYPE_MAP, ITEM_TYPE_OBJ ]
|
64
65
|
field :item_type, type: String
|
65
66
|
validates :item_type, presence: true
|
66
67
|
|
data/lib/ish/user_profile.rb
CHANGED
data/lib/warbler/stock_watch.rb
CHANGED