Sha256: d3a4cb4501f8bc2cdbd74c9a200e90931b14a07fb0ead43d5394aa49bd6a2970

Contents?: true

Size: 510 Bytes

Versions: 1

Compression:

Stored size: 510 Bytes

Contents

module TinyCore
  module Controllers
    module AdminUsers
      def self.included(receiver)
        receiver.before_filter :login_required
        receiver.before_filter :can_see_all_users!
      end

      def index
        @search_filter = SearchFilter.new(params[:search_filter])
        @users = User.paginate_for_list(@search_filter, :page => params[:page])
        render :update do |page|
          page.replace_html 'users', :partial => 'index'
        end if request.xhr?
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tiny_core_users-0.0.1 lib/tiny_core/controllers/admin_users.rb