# HG changeset patch # User edogawaconan # Date 1381897973 -32400 # Node ID d68cb68da8020099e99aa6d382dfd338f2492a94 # Parent 1b302d092e9865544b47830bdf447e93415b76a2 Use hash rocket. diff -r 1b302d092e98 -r d68cb68da802 app/models/paste.rb --- a/app/models/paste.rb Wed Oct 16 05:22:01 2013 +0900 +++ b/app/models/paste.rb Wed Oct 16 13:32:53 2013 +0900 @@ -16,7 +16,7 @@ id, secret = raw_id.to_s.split("-") return unless id.to_i.to_s == id begin - self.where(secret: secret).find(id) + self.where(:secret => secret).find(id) rescue ActiveRecord::RecordNotFound nil end