Mercurial > rsstweet
comparison app/controllers/tweets_controller.rb @ 260:e2150dce4e90
Rubocop (rails) time
author | nanaya <me@nanaya.net> |
---|---|
date | Sun, 15 Dec 2024 22:59:09 +0900 |
parents | 4222343d9433 |
children |
comparison
equal
deleted
inserted
replaced
259:8b75d00c77ba | 260:e2150dce4e90 |
---|---|
1 class TweetsController < ApplicationController | 1 class TweetsController < ApplicationController |
2 def index | 2 def index |
3 return redirect if params[:name].present? | 3 redirect if params[:name].present? |
4 end | 4 end |
5 | 5 |
6 def show | 6 def show |
7 return redirect if params[:id][/\D/].present? | 7 return redirect if params[:id][/\D/].present? |
8 | 8 |
36 end | 36 end |
37 | 37 |
38 private | 38 private |
39 | 39 |
40 def normalized_screen_name | 40 def normalized_screen_name |
41 @user[:username].presence || '_' | 41 @user[:username].presence || "_" |
42 end | 42 end |
43 end | 43 end |