groupped_settings 0.2.1.18711 → 0.2.1.18733

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupped/settings.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98b5d72c5fe3fdeaceee36e13270a27a5f26ad5d73e5240c4b6a54966125055e
4
- data.tar.gz: 67410e1173be82008f85ae66cca623ae0d8307c3a6d613e67c3a4ca04081bf41
3
+ metadata.gz: b705fc758c6a6ed9aa7883e0705b009e00454058138afe575e2895a8252bb083
4
+ data.tar.gz: 993fd23d261b87a514b9a1569d6d72192819e96dded26348c3d1e5f7b782f397
5
5
  SHA512:
6
- metadata.gz: 581e8feb560ef7711c1e0e102b9b2788fc9c6ba2699caa576219684e26a1d3b6f2488a0c889ad355b4e3e52f25ab441c3d00ea6a2976efc7580dee9027784aee
7
- data.tar.gz: 1ac8925ecab3499923ef7920e62d863bedc9f7961db9906e19bab391ab434f7638a10a8e9d73a2cf90f1ee59547985dd4512ab4ee448b93400d9a5ce24c60b1d
6
+ metadata.gz: e13a8170f6dff10af696cdb37a78a0311a4a8aab39c4bf43869a492538dce826539cf172b726648b9ee2014725dab49f1a91e20d9d748905f29cbf08a08f4d1b
7
+ data.tar.gz: d2ee851cec6bb4d7fe9c74e670a681ce623672cf713948314c8ee9e3ecb1648a228ee4305fa470e99d8e48136cf5d05b75ca6642bbe92e8e307caabb141540cc
@@ -19,7 +19,7 @@ module Groupped
19
19
  class << self
20
20
 
21
21
  def [](group, klass = Group, target: nil)
22
- klass.new(Record.first_or_create!(group: group.downcase, target: target))
22
+ klass.new(Record.where(group: group.downcase, target: target).first_or_create!)
23
23
  end
24
24
 
25
25
  def configure
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupped_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1.18711
4
+ version: 0.2.1.18733
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoilenko Yuri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-06 00:00:00.000000000 Z
11
+ date: 2019-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord