organizer-rails 0.2.1 → 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: 4e8757c4fd30584304c8f35dcc9d56bbe76d910a5dd4aca8bcd1205b8a16a96a
4
- data.tar.gz: 6167dbc661dd04a78f6b5078ae498a280917084d61a9e65eb545bd21a3741565
3
+ metadata.gz: 9f2eefb0e777bdfc4265c7a760ba474346d22766807f552fa6d5a585b11bb05b
4
+ data.tar.gz: 155be79bed0aa1d2c4c78516d7353c1e4b40d14ad3c3ca8d7b1e34b4b3eff911
5
5
  SHA512:
6
- metadata.gz: a0649f46e0edcd3bae00d6fb56d0fce8b4153da136f6e143d2c7e034cef6e6a00b66684d6a5cd50fc8cda69983736f9c15cc04ce06a503b85c983614a30db389
7
- data.tar.gz: 422586546c3c9334bf4ad0ed6decb2eb5b095c3625fed75ff78271880f45b0f23cab44c4e24ad8681aba6d80c3cfe316760b8d09b7a62a9645232387efe25949
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
20
  end.to_set
21
- end
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.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: organizer-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Senko
@@ -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.1/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: