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 +4 -4
- data/app/models/concerns/organizer/identifiable.rb +4 -4
- data/lib/organizer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f2eefb0e777bdfc4265c7a760ba474346d22766807f552fa6d5a585b11bb05b
|
4
|
+
data.tar.gz: 155be79bed0aa1d2c4c78516d7353c1e4b40d14ad3c3ca8d7b1e34b4b3eff911
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
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
|
-
|
45
|
+
def identifiers
|
46
46
|
all.pluck(@identified_by)
|
47
47
|
end
|
48
48
|
end
|
data/lib/organizer/version.rb
CHANGED
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.
|
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-
|
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.
|
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:
|