Commit 8e8fddc28176a48bef14812162a4b29c1fddb92c
1 parent
93403758
Exists in
new_video_plugin
Changes for rails4
Showing
2 changed files
with
2 additions
and
3 deletions
Show diff stats
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