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