Skip to content

Commit

Permalink
txt -> text
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Dec 28, 2021
1 parent deecbe0 commit 30939b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/accepts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class AcceptsController < ApplicationController
# GET /accepts
# GET /accepts.json
def index
if params[:format] == 'txt'
if request.format.text?
@accepts = Accept.order('accepts.created_at DESC').page(params[:page]).per(65534)
else
if params[:accept]
Expand All @@ -29,7 +29,7 @@ def index
format.html # index.html.erb
format.json { render json: @accepts }
format.js { @accept = Accept.new }
format.txt
format.text
end
end

Expand Down

0 comments on commit 30939b6

Please sign in to comment.