ish_models 0.0.33.141 → 0.0.33.142
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.
- checksums.yaml +4 -4
- data/lib/gameui/map.rb +0 -2
- data/lib/ish_models.rb +0 -1
- metadata +1 -2
- data/lib/ish/nonpublic.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0dd9bba4e16c209fb54dcebf586119e5576a594e6fa21ac1d8b8b9eae0ecc35
|
4
|
+
data.tar.gz: 5b1afb35b2e8e1ea6f828b11e5639b176efc67d008958b2823e4693a6e560370
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b41ca3ca98611ec517ee00bde8f7e4de19f1743a7103c707df9883916609ef2f7d7084456f191262eec86d245446ad85fd8103e99d712c80b50db7027dc430a6
|
7
|
+
data.tar.gz: dfab6751845fff7c3c14e72463b7bf0259f13bd3515e3b03ebe46bc8b98468bff2e4462c6d917bc1de0ef21d352bc5fb864a6551d3d30639bd282bac698a0726
|
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/ish_models.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.33.
|
4
|
+
version: 0.0.33.142
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
@@ -128,7 +128,6 @@ files:
|
|
128
128
|
- lib/ish/invoice.rb
|
129
129
|
- lib/ish/issue.rb
|
130
130
|
- lib/ish/lead.rb
|
131
|
-
- lib/ish/nonpublic.rb
|
132
131
|
- lib/ish/payment.rb
|
133
132
|
- lib/ish/premium_item.rb
|
134
133
|
- lib/ish/railtie.rb
|
data/lib/ish/nonpublic.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
|
2
|
-
## THIS IS TRASH. I copy-paste repetitively instead!
|
3
|
-
|
4
|
-
## aka: Ish::Shareable
|
5
|
-
## adds is_public (default true) and #shared_profiles, inverse :shared_items ???
|
6
|
-
module Ish::Nonpublic
|
7
|
-
|
8
|
-
def self.included base
|
9
|
-
base.send :field, :is_public, type: Boolean, default: true
|
10
|
-
base.send :has_and_belongs_to_many, :shared_profiles, :class_name => 'Ish::UserProfile', :inverse_of => :shared_markers
|
11
|
-
end
|
12
|
-
|
13
|
-
end
|