radiant-group_forum-extension 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/group_forum_extension.rb +1 -1
- data/lib/grouped_post.rb +3 -2
- data/lib/grouped_topic.rb +2 -1
- data/radiant-group_forum-extension.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.1
|
data/group_forum_extension.rb
CHANGED
data/lib/grouped_post.rb
CHANGED
@@ -11,9 +11,10 @@ module GroupedPost
|
|
11
11
|
conditions = reader.nil? ? "pp.group_id IS NULL" : ["pp.group_id IS NULL OR pp.group_id IN(#{ids.map{"?"}.join(',')})", *ids]
|
12
12
|
end
|
13
13
|
{
|
14
|
-
:joins => "
|
14
|
+
:joins => "LEFT OUTER JOIN topics on posts.topic_id = topics.id LEFT OUTER JOIN forums on topics.forum_id = forums.id LEFT OUTER JOIN permissions as pp on pp.permitted_id = forums.id AND pp.permitted_type = 'Forum'",
|
15
15
|
:group => column_names.map { |n| self.table_name + '.' + n }.join(','),
|
16
|
-
:conditions => conditions
|
16
|
+
:conditions => conditions,
|
17
|
+
:readonly => false
|
17
18
|
}
|
18
19
|
} do
|
19
20
|
def count
|
data/lib/grouped_topic.rb
CHANGED
@@ -13,7 +13,8 @@ module GroupedTopic
|
|
13
13
|
{
|
14
14
|
:joins => "INNER JOIN forums on topics.forum_id = forums.id LEFT OUTER JOIN permissions as pp on pp.permitted_id = forums.id AND pp.permitted_type = 'Forum'",
|
15
15
|
:group => column_names.map { |n| self.table_name + '.' + n }.join(','),
|
16
|
-
:conditions => conditions
|
16
|
+
:conditions => conditions,
|
17
|
+
:readonly => false
|
17
18
|
}
|
18
19
|
} do
|
19
20
|
def count
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-group_forum-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 1
|
10
|
+
version: 0.6.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- spanner
|