@ -8,7 +8,7 @@ class LibrariesController < ApplicationController
libraries = Library.where(nil)
libraries =
if current_user.logged? && params[:type] == 'mine'
if User.current.logged? && params[:type] == 'mine'
libraries.where(user_id: current_user.id).order('created_at desc')
else
libraries.where(status: :published).order('visited_count desc')