Commit 6e515ada22b02c088c2633575e62dec13035d4ae
Committed by
Diego Camarinha
1 parent
94503e7b
Exists in
colab
and in
4 other branches
Use default user of nil for finding visible reading groups/configurations
Signed-off-by: Daniel Miranda <danielkza2@gmail.com>
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/models/kalibro_configuration.rb
@@ -14,7 +14,7 @@ class KalibroConfiguration < KalibroClient::Entities::Configurations::KalibroCon | @@ -14,7 +14,7 @@ class KalibroConfiguration < KalibroClient::Entities::Configurations::KalibroCon | ||
14 | end | 14 | end |
15 | 15 | ||
16 | def self.public | 16 | def self.public |
17 | - self.public_or_owned_by_user(nil) | 17 | + self.public_or_owned_by_user |
18 | end | 18 | end |
19 | 19 | ||
20 | def attributes | 20 | def attributes |
app/models/reading_group.rb
@@ -14,7 +14,7 @@ class ReadingGroup < KalibroClient::Entities::Configurations::ReadingGroup | @@ -14,7 +14,7 @@ class ReadingGroup < KalibroClient::Entities::Configurations::ReadingGroup | ||
14 | end | 14 | end |
15 | 15 | ||
16 | def self.public | 16 | def self.public |
17 | - self.public_or_owned_by_user(nil) | 17 | + self.public_or_owned_by_user |
18 | end | 18 | end |
19 | 19 | ||
20 | def attributes | 20 | def attributes |