Setting group sorting

This commit is contained in:
Martin Lensment 2014-09-05 15:53:11 +03:00
parent 46921c3e57
commit c1d41df64f
3 changed files with 24 additions and 21 deletions

View file

@ -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