groupped_settings 0.2.1.18733 → 0.2.2.18778

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: b705fc758c6a6ed9aa7883e0705b009e00454058138afe575e2895a8252bb083
4
- data.tar.gz: 993fd23d261b87a514b9a1569d6d72192819e96dded26348c3d1e5f7b782f397
3
+ metadata.gz: 2d5b62d16c17083420b41edeb1bbf4729f68a96b410506a8e9f717f6eecd9748
4
+ data.tar.gz: e116faeaafbf96595c680deef18651f899bd1eef6f1cf24a4fd89a265f47e281
5
5
  SHA512:
6
- metadata.gz: e13a8170f6dff10af696cdb37a78a0311a4a8aab39c4bf43869a492538dce826539cf172b726648b9ee2014725dab49f1a91e20d9d748905f29cbf08a08f4d1b
7
- data.tar.gz: d2ee851cec6bb4d7fe9c74e670a681ce623672cf713948314c8ee9e3ecb1648a228ee4305fa470e99d8e48136cf5d05b75ca6642bbe92e8e307caabb141540cc
6
+ metadata.gz: a3baa4f131ce3a4225931076000c6b1e63186a2b1c33bcffe2421e1553f8746c3a74600c5014befedfe10e0fc7c4d2de70f56d5f5f8f62c8e535a08a824dba32
7
+ data.tar.gz: d1a83cc4c837094fe7f05315e934d8f101f34bbecdd746c8d9b0187d5e376b1fa79d93ee993f3ca734268a8b05ef6a0dc9325b48cdc42d3752687083d2eebb9b
@@ -18,8 +18,8 @@ module Groupped
18
18
 
19
19
  class << self
20
20
 
21
- def [](group, klass = Group, target: nil)
22
- klass.new(Record.where(group: group.downcase, target: target).first_or_create!)
21
+ def [](group, klass = Group, target: nil, settings: {})
22
+ klass.new(Record.where(group: group.downcase, target: target).first_or_create!(settings: settings))
23
23
  end
24
24
 
25
25
  def configure
@@ -24,8 +24,8 @@ module Groupped
24
24
  Record.sanitize(settings).slice(*self.attribute_names)
25
25
  end
26
26
 
27
- def self.load(target: nil)
28
- Groupped::Settings[self.group_name, self, target: target]
27
+ def self.load(target: nil, settings: {})
28
+ Groupped::Settings[self.group_name, self, target: target, settings: settings]
29
29
  end
30
30
 
31
31
  def initialize(record)
@@ -3,7 +3,7 @@
3
3
  module Groupped
4
4
  module Settings
5
5
 
6
- VERSION = '0.2.1'
6
+ VERSION = '0.2.2'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupped_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1.18733
4
+ version: 0.2.2.18778
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoilenko Yuri