ish_models 0.0.33.141 → 0.0.33.142

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
  SHA256:
3
- metadata.gz: 9a63c954511cab021c7cef772ae4ad322b1bb61c790aa7c7ebe14f7efcf793f5
4
- data.tar.gz: 8da5fe1bec8a68cc7ddddc95723a9b024233ab234257dd3a5af697978eff8bdb
3
+ metadata.gz: b0dd9bba4e16c209fb54dcebf586119e5576a594e6fa21ac1d8b8b9eae0ecc35
4
+ data.tar.gz: 5b1afb35b2e8e1ea6f828b11e5639b176efc67d008958b2823e4693a6e560370
5
5
  SHA512:
6
- metadata.gz: 1c3960a977b88f7920f2ee65c95c04656f61e0c640bca650912f72dbdc3f00062a0ca37ff92fe2c576d1b3a5715d40bc561ce6d1c822165e356fa5219e2b2866
7
- data.tar.gz: 5c44ffd813468049999ae2791ad1c2b30f413c1ff6539dce722add499f6275041bf38bc2cb402d630d20d93f39b0e82474444c45bf5aaed60d971e0e061b441a
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
@@ -40,7 +40,6 @@ require 'ish/input_error'
40
40
  require 'ish/invoice'
41
41
  require 'ish/issue'
42
42
  require 'ish/lead'
43
- require 'ish/nonpublic'
44
43
  require 'ish/payment'
45
44
  require 'ish/premium_item'
46
45
  require 'ish/utils'
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.141
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