app/views/georgia/api/media/pictures.html.erb in georgia-0.7.8 vs app/views/georgia/api/media/pictures.html.erb in georgia-0.8.0

- old
+ new

@@ -1,8 +1,8 @@ <% if @pictures and @pictures.any? %> <%= pagination_tag @search %> <hr /> - <% @pictures.in_groups_of(4, false) do |pictures| %> + <% @pictures.to_a.in_groups_of(4, false) do |pictures| %> <div class="row"> <% pictures.each do |picture| %> <div class="col-md-3 picture"> <%= link_to '#', class: 'media-link bg-transparent', data: {media: 'picture', 'media-id' => picture.id} do %> <%= image_tag picture.url(:thumb), title: picture.data_file_name, class: 'media-image' %> \ No newline at end of file