Skip to content
Snippets Groups Projects
Commit 870b7bec authored by Arnaud Levy's avatar Arnaud Levy
Browse files

not always square

parent fbfce4d7
No related branches found
No related tags found
No related merge requests found
......@@ -11,9 +11,9 @@ class Admin::Communication::UnsplashController < Admin::Communication::Applicati
query: params[:query],
page: (params[:page].presence || 1),
per_page: (params[:per_page].presence || 10),
orientation: (params[:orientation].presence || 'squarish'),
lang: (params[:lang].presence || 'en')
}
p[:orientation] = params[:orientation] if params.has_key? :orientation
@search = Unsplash::Search.search "/search/photos", Unsplash::Photo, p
@total = @search.total
@total_pages = @search.total_pages
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment