mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Setting group sorting
This commit is contained in:
parent
46921c3e57
commit
c1d41df64f
3 changed files with 24 additions and 21 deletions
|
@ -2,7 +2,8 @@ class Admin::SettingGroupsController < ApplicationController
|
|||
before_action :set_setting_group, only: [:show, :update]
|
||||
|
||||
def index
|
||||
@setting_groups = SettingGroup.all
|
||||
@q = SettingGroup.search(params[:q])
|
||||
@setting_groups = @q.result.page(params[:page])
|
||||
end
|
||||
|
||||
def show; end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue