Sha256: 948f8bc09d12906916e7a87e823fd8d6a0dccbbf1c6742373b6fdfecec05f819

Contents?: true

Size: 748 Bytes

Versions: 57

Compression:

Stored size: 748 Bytes

Contents

module Cmor
  module UserArea
    module Backend
      class UsersController < Cmor::Core::Backend::ResourcesController::Base
        include Rao::ResourcesController::SortingConcern

        def self.resource_class
          Cmor::UserArea::User
        end

        def autocomplete
          @collection = collection_scope.autocomplete(params[:term])

          respond_to do |format|
            format.json { render json: @collection.map { |q| q.as_json(style: :autocomplete) } }
          end
        end

        private
        
        def permitted_params
          params
            .require(:user)
              .permit(:email, :password, :password_confirmation, :active, :confirmed, :approved)
        end
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
cmor_user_area_backend-0.0.60.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.59.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.58.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.57.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.56.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.55.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.54.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.53.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.52.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.51.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.50.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.49.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.48.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.45.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.44.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.43.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.42.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.41.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.40.pre app/controllers/cmor/user_area/backend/users_controller.rb
cmor_user_area_backend-0.0.39.pre app/controllers/cmor/user_area/backend/users_controller.rb