Commit 267bd6068c7a57316ef357f9385e12fea6c8d69f
Exists in
master
and in
4 other branches
Merge branch 'issue-101' into dev
Showing
4 changed files
with
6 additions
and
1 deletions
Show diff stats
Gemfile
Gemfile.lock
| ... | ... | @@ -119,6 +119,8 @@ GEM |
| 119 | 119 | rails (>= 3.0.0) |
| 120 | 120 | launchy (2.0.5) |
| 121 | 121 | addressable (~> 2.2.6) |
| 122 | + letter_opener (0.0.2) | |
| 123 | + launchy | |
| 122 | 124 | libv8 (3.3.10.2) |
| 123 | 125 | linecache19 (0.5.12) |
| 124 | 126 | ruby_core_source (>= 0.1.4) |
| ... | ... | @@ -262,6 +264,7 @@ DEPENDENCIES |
| 262 | 264 | jquery-rails |
| 263 | 265 | kaminari |
| 264 | 266 | launchy |
| 267 | + letter_opener | |
| 265 | 268 | pygments.rb (= 0.2.3) |
| 266 | 269 | rails (= 3.1.0) |
| 267 | 270 | rails-footnotes (>= 3.7.5.rc4) | ... | ... |
app/controllers/issues_controller.rb
| ... | ... | @@ -41,7 +41,7 @@ class IssuesController < ApplicationController |
| 41 | 41 | def create |
| 42 | 42 | @issue = @project.issues.new(params[:issue]) |
| 43 | 43 | @issue.author = current_user |
| 44 | - if @issue.save | |
| 44 | + if @issue.save && @issue.assignee != current_user | |
| 45 | 45 | Notify.new_issue_email(@issue).deliver |
| 46 | 46 | end |
| 47 | 47 | ... | ... |
config/environments/development.rb