Mercurial > zeropaste
comparison app/controllers/pastes_controller.rb @ 73:f480cdf5f3df
Misc whitespace.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 04 Oct 2012 10:58:57 +0700 |
parents | be561c3967ee |
children | 48598fc65c20 |
comparison
equal
deleted
inserted
replaced
72:f43b4d5400ac | 73:f480cdf5f3df |
---|---|
1 class PastesController < ApplicationController | 1 class PastesController < ApplicationController |
2 caches_page :show | 2 caches_page :show |
3 | |
3 # GET /pastes/1 | 4 # GET /pastes/1 |
4 # GET /pastes/1.json | 5 # GET /pastes/1.json |
5 def show | 6 def show |
6 id = params[:id].to_i | 7 id = params[:id].to_i |
7 if id.to_s != params[:id] | 8 if id.to_s != params[:id] |