diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-12-18 16:08:20 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-12-18 16:08:20 +0000 |
commit | d4d8096429cc9a97efbde63ef37cd1cc7d12708c (patch) | |
tree | 6ab3b13fa0a37e02876d9ac808e5ba00ea8d967b /app/models/info_request.rb | |
parent | c0a3dc4571090fc553fd608cf1ac83e21f0290f4 (diff) | |
parent | 6d587c328b7d58fb322bd9cf490b213c3ff1ffad (diff) |
Merge branch 'brakeman_fixes' into rails-3-develop
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 20b7ef9af..2b60e13d8 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -1366,9 +1366,9 @@ public end def InfoRequest.find_in_state(state) - find(:all, :select => '*, ' + last_event_time_clause + ' as last_event_time', - :conditions => ["described_state = ?", state], - :order => "last_event_time") + select("*, #{ last_event_time_clause } as last_event_time"). + where(:described_state => state). + order('last_event_time') end private |