organizer-rails 0.2.0 → 0.2.2

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: 145be80c0dc4c6b9c012b474c6958d8891aa81143c39cdff4749d5713de2ad02
4
- data.tar.gz: 3b83640f157bc0980e2d8867a32a08e71e407adc332912b3ed49d0e72317dd34
3
+ metadata.gz: 9f2eefb0e777bdfc4265c7a760ba474346d22766807f552fa6d5a585b11bb05b
4
+ data.tar.gz: 155be79bed0aa1d2c4c78516d7353c1e4b40d14ad3c3ca8d7b1e34b4b3eff911
5
5
  SHA512:
6
- metadata.gz: 2e363e498d9d7ce66a643e90e9021371faeba2eccbeb3ee48d4df10906d641ccc0ffcde22f6287949893f1b9dc258c220e01818ab36a11ccc5f7b03aa6839227
7
- data.tar.gz: 96c82bafd31b4132f8cf0ec2032064302889781a48232c9d60644d061ebffdbbc8090fe95f78cbfce7ffe551dab4755f3c7985549a862fe59eccfc8631608cc0
6
+ metadata.gz: 70e71aa2132ddd370f2dc80f10546c2929012b8447b6f79f119488fcbf2c88276d174c532936418eb7b9049e6592589b83032376fa4d82d78db042ec527d4b20
7
+ data.tar.gz: 2aa3bfa8bfdc0c971690e494764e766f86ef0415f53c511da95ff0d458095adbc16925c1524f738e7928c464b5200509ff9a48f2f82d69fda33cc43bebe00478
@@ -12,13 +12,13 @@ module Organizer
12
12
  end
13
13
 
14
14
  class_methods do # public API
15
- define_method column_name.to_s.pluralize do
15
+ memoize define_method(column_name.to_s.pluralize) {
16
16
  if @symbolize_ids
17
17
  identifiers.map &:to_sym
18
18
  else
19
19
  identifiers
20
- end
21
- end
20
+ end.to_set
21
+ }
22
22
  end
23
23
  end
24
24
  end
@@ -42,7 +42,7 @@ module Organizer
42
42
 
43
43
  private
44
44
 
45
- memoize def identifiers
45
+ def identifiers
46
46
  all.pluck(@identified_by)
47
47
  end
48
48
  end
@@ -1,3 +1,3 @@
1
1
  module Organizer
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: organizer-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Senko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-08 00:00:00.000000000 Z
11
+ date: 2024-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -72,7 +72,7 @@ licenses:
72
72
  metadata:
73
73
  homepage_uri: https://github.com/Alexander-Senko/organizer
74
74
  source_code_uri: https://github.com/Alexander-Senko/organizer
75
- changelog_uri: https://github.com/Alexander-Senko/organizer/blob/v0.2.0/CHANGELOG.md
75
+ changelog_uri: https://github.com/Alexander-Senko/organizer/blob/v0.2.2/CHANGELOG.md
76
76
  post_install_message:
77
77
  rdoc_options: []
78
78
  require_paths: