|
|
|
@ -29,7 +29,8 @@ class ManagementsController < ApplicationController
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def user_agents
|
|
|
|
|
@user_agents = UserAgent.where("user_agents.key is not null and is_delete = 0").order("created_at desc")
|
|
|
|
|
@user_agents = UserAgent.joins("JOIN users u ON u.login = user_agents.key")
|
|
|
|
|
.where("user_agents.key is not null and is_delete = 0").order("created_at desc")
|
|
|
|
|
@agents_count = @user_agents.count
|
|
|
|
|
limit = 20
|
|
|
|
|
@agents_pages = Paginator.new @agents_count, limit, params['page'] || 1
|
|
|
|
|