Skip to content

Commit

Permalink
Merge pull request #1 from Cantemo/master
Browse files Browse the repository at this point in the history
Make plugin compatible with postgresql
  • Loading branch information
neowit committed Jul 8, 2013
2 parents f72e3f2 + b3ec19b commit d3632d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/last_updated_by_issue_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def last_updated_by (no_default = false)
else #postgre and mysql
sqlStr = "select CONCAT_WS(' ', u.firstname, u.lastname) as name"
end
_sql = sqlStr + ", u.id as id from #{Journal.table_name} as j1 inner join #{User.table_name} as u on u.id = j1.`user_id` where `journalized_type` = 'Issue' and `journalized_id` = #{id} order by j1.`id` DESC limit 1"
_sql = sqlStr + ", u.id as id from #{Journal.table_name} as j1 inner join #{User.table_name} as u on u.id = j1.user_id where journalized_type = 'Issue' and journalized_id = #{id} order by j1.id DESC limit 1"
result = ActiveRecord::Base.connection.select_one _sql
updated_by_name = ""
updated_by_id = nil
Expand Down

0 comments on commit d3632d8

Please sign in to comment.