Mercurial > zeropaste
changeset 290:d68cb68da802
Use hash rocket.
author | edogawaconan <me@myconan.net> |
---|---|
date | Wed, 16 Oct 2013 13:32:53 +0900 |
parents | 1b302d092e98 |
children | d701cf49fa3b |
files | app/models/paste.rb |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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