aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-04-27 11:42:22 +0100
committerJon Leighton <j@jonathanleighton.com>2012-04-27 11:42:50 +0100
commitdf6f971e3aedf8bb1ec318de95d7ce849e2c9c9e (patch)
treec18946036ddff7f38c92a9c4f8bff99bc6da49c9 /activerecord/lib/active_record
parenta57b7842d0fcdcbcc567532d3a5c1f2628057a0d (diff)
downloadrails-df6f971e3aedf8bb1ec318de95d7ce849e2c9c9e.tar.gz
rails-df6f971e3aedf8bb1ec318de95d7ce849e2c9c9e.tar.bz2
rails-df6f971e3aedf8bb1ec318de95d7ce849e2c9c9e.zip
%s/find(:\(first\|last\|all\), \([^()]*\))/scoped(\2).\1/gcI amongst other things
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/session_store.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/session_store.rb b/activerecord/lib/active_record/session_store.rb
index ce43ae8066..ed47a26749 100644
--- a/activerecord/lib/active_record/session_store.rb
+++ b/activerecord/lib/active_record/session_store.rb
@@ -119,7 +119,7 @@ module ActiveRecord
class << self; remove_possible_method :find_by_session_id; end
def self.find_by_session_id(session_id)
- find :first, :conditions => {:session_id=>session_id}
+ where(session_id: session_id).first
end
end
end