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.
- checksums.yaml +4 -4
- data/lib/groupped/settings.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b705fc758c6a6ed9aa7883e0705b009e00454058138afe575e2895a8252bb083
|
4
|
+
data.tar.gz: 993fd23d261b87a514b9a1569d6d72192819e96dded26348c3d1e5f7b782f397
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e13a8170f6dff10af696cdb37a78a0311a4a8aab39c4bf43869a492538dce826539cf172b726648b9ee2014725dab49f1a91e20d9d748905f29cbf08a08f4d1b
|
7
|
+
data.tar.gz: d2ee851cec6bb4d7fe9c74e670a681ce623672cf713948314c8ee9e3ecb1648a228ee4305fa470e99d8e48136cf5d05b75ca6642bbe92e8e307caabb141540cc
|
data/lib/groupped/settings.rb
CHANGED
@@ -19,7 +19,7 @@ module Groupped
|
|
19
19
|
class << self
|
20
20
|
|
21
21
|
def [](group, klass = Group, target: nil)
|
22
|
-
klass.new(Record.
|
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.
|
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-
|
11
|
+
date: 2019-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|