From b1c981493b47a8f2fb24d421f790d4ee0d635fe7 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Sat, 15 May 2021 02:52:20 +0200 Subject: [PATCH] suite --- app/models/student_user.rb | 2 +- app/views/layouts/public.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/student_user.rb b/app/models/student_user.rb index ca4d3fe..026e6f7 100644 --- a/app/models/student_user.rb +++ b/app/models/student_user.rb @@ -12,7 +12,7 @@ class StudentUser < ActiveRecord::Base has_many :messages, :class_name => "StudentMessage" has_many :topics, :class_name => "StudentTopic" - has_many :images, :class_name => "StudentUserImage", :order => "created_at DESC" + has_many :images, :class_name => "StudentUserImage" #, :order => "created_at DESC" has_many :student_user_groups diff --git a/app/views/layouts/public.html.haml b/app/views/layouts/public.html.haml index 3daa04b..e07b001 100644 --- a/app/views/layouts/public.html.haml +++ b/app/views/layouts/public.html.haml @@ -46,7 +46,7 @@ #testimony_slideshow - -Testimony.find(:all).sort_by { rand }.each do |testimony| + -Testimony.all.sort_by { rand }.each do |testimony|