Commit 8e8fddc28176a48bef14812162a4b29c1fddb92c

Authored by Evandro Jr
1 parent 93403758
Exists in new_video_plugin

Changes for rails4

plugins/video/lib/video_plugin/video_gallery_helper.rb
... ... @@ -5,10 +5,9 @@ module VideoPlugin::VideoGalleryHelper
5 5 configure[:list_type] ||= :folder
6 6 if !configure[:contents].blank?
7 7 configure[:contents] = configure[:contents].paginate(
8   - :order => "updated_at DESC",
9 8 :per_page => 17,
10 9 :page => params[:npage]
11   - )
  10 + ).order("updated_at DESC")
12 11 render :file => 'shared/video_list', :locals => configure
13 12 else
14 13 content_tag('em', _('(empty folder)'))
... ...
plugins/video/views/content_viewer/video_plugin/_video_gallery.html.erb
... ... @@ -11,4 +11,4 @@
11 11 <em><%= _('(empty video gallery)') %></em>
12 12 <% else %>
13 13 <%= list_videos(:contents=>video_gallery.children) %>
14   -<% end %>
15 14 \ No newline at end of file
  15 +<% end %>
... ...