forked from OpenNeo/impress
Remove weird unused begin/end block in ItemsController
This commit is contained in:
parent
19ebf4d78a
commit
bdefeb53d6
1 changed files with 42 additions and 44 deletions
|
@ -4,7 +4,6 @@ class ItemsController < ApplicationController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
if @query
|
if @query
|
||||||
begin
|
|
||||||
if params[:per_page]
|
if params[:per_page]
|
||||||
per_page = params[:per_page].to_i
|
per_page = params[:per_page].to_i
|
||||||
per_page = 50 if per_page && per_page > 50
|
per_page = 50 if per_page && per_page > 50
|
||||||
|
@ -53,7 +52,6 @@ class ItemsController < ApplicationController
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
|
||||||
elsif params.has_key?(:ids) && params[:ids].is_a?(Array)
|
elsif params.has_key?(:ids) && params[:ids].is_a?(Array)
|
||||||
@items = Item.find(params[:ids])
|
@items = Item.find(params[:ids])
|
||||||
assign_closeted!
|
assign_closeted!
|
||||||
|
|
Loading…
Reference in a new issue