simple_discussion 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 834ccd97ab1cd0bbbe2aeade6fd0ca57dbbb9239
|
|
4
|
+
data.tar.gz: cdba66f70c1574b9cfca22c31d97f8004994ffd8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2efe0ca3c21542774ee8398cfaec7c5e3c03674c0976c42146769bc1762237f8d2d70dbd9700f25f6d11663665b8423e15903e2e4ef8a6d87b9fb75495514f4d
|
|
7
|
+
data.tar.gz: 0bd0377abdf023db1527498d353d819d30de644f19ff909cc6b3e74d774aa53119418f0677fd77cf64c13b83e817060b398511a13143dbeda7c9d74258405924
|
data/README.md
CHANGED
|
@@ -4,6 +4,8 @@ SimpleDiscussion is a Rails forum gem extracting the [forum from GoRails](https:
|
|
|
4
4
|
|
|
5
5
|
Out of the box, SimpleDiscussion comes with styling for Boostrap v4 but you're free to customize the UI as much as you like by installing the views and tweaking the HTML.
|
|
6
6
|
|
|
7
|
+
[](https://d3vv6lp55qjaqc.cloudfront.net/items/3j2p3o1j0d1O0R1w2j1Y/Screen%20Shot%202017-08-08%20at%203.12.01%20PM.png?X-CloudApp-Visitor-Id=51470&v=d439dcae)
|
|
8
|
+
|
|
7
9
|
## Installation
|
|
8
10
|
|
|
9
11
|
Before you get started, SimpleDiscussion requires a `User` model in your application (for now).
|
|
@@ -119,4 +121,4 @@ The gem is available as open source under the terms of the [MIT License](http://
|
|
|
119
121
|
|
|
120
122
|
## Code of Conduct
|
|
121
123
|
|
|
122
|
-
Everyone interacting in the SimpleDiscussion project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
|
124
|
+
Everyone interacting in the SimpleDiscussion project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/excid3/simple_discussion/blob/master/CODE_OF_CONDUCT.md).
|
|
@@ -53,7 +53,7 @@ class SimpleDiscussion::ForumPostsController < SimpleDiscussion::ApplicationCont
|
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
def set_forum_post
|
|
56
|
-
if
|
|
56
|
+
if is_moderator?
|
|
57
57
|
@forum_post = @forum_thread.forum_posts.find(params[:id])
|
|
58
58
|
else
|
|
59
59
|
@forum_post = current_user.forum_posts.find(params[:id])
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simple_discussion
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Oliver
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-08-
|
|
11
|
+
date: 2017-08-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: font-awesome-sass
|