Mercurial > zeropaste
diff app/models/paste.rb @ 290:d68cb68da802
Use hash rocket.
author | edogawaconan <me@myconan.net> |
---|---|
date | Wed, 16 Oct 2013 13:32:53 +0900 |
parents | 0bf1d6f75baa |
children | 61f7f258a6fb |
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