Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/search_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def search_boxed

def search
page = params[:page] || 1
per_page = params[:per_page] || 10
per_page = params[:per_page] || ENV['PER_PAGE'] || 20
@results = search_results(page, per_page)
return redirect_to root_url unless @results
render 'search_boxed'
Expand Down
1 change: 1 addition & 0 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
ENV['FEEDBACK_MAIL_TO'] = 'test@example.com'
ENV['ALEPH_API_URI'] = 'https://fake_server.example.com/rest-dlf/'
ENV['ALEPH_KEY'] = 'FAKE_KEY'
ENV['PER_PAGE'] = '10'

# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
Expand Down