governor_comments 0.2.3 → 0.2.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.
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/app/controllers/governor/comments_controller.rb +1 -1
- data/governor_comments.gemspec +1 -1
- data/spec/rails_app/Gemfile.lock +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.4
|
|
@@ -10,7 +10,7 @@ module Governor
|
|
|
10
10
|
helper Governor::Controllers::Helpers
|
|
11
11
|
|
|
12
12
|
def create
|
|
13
|
-
params[:comment][:commenter] = governor_logged_in? ? the_governor : Guest.
|
|
13
|
+
params[:comment][:commenter] = governor_logged_in? ? the_governor : Guest.find_or_initialize_by_email(params[:comment][:commenter])
|
|
14
14
|
@comment = resource.comments.new(params[:comment])
|
|
15
15
|
|
|
16
16
|
respond_to do |format|
|
data/governor_comments.gemspec
CHANGED
data/spec/rails_app/Gemfile.lock
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: governor_comments
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 31
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.2.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Liam Morley
|