Sha256: a86b426430112631e9f86101863f8957665805f96ad6b17b81037d000afffc05
Contents?: true
Size: 536 Bytes
Versions: 15
Compression:
Stored size: 536 Bytes
Contents
require_dependency "wobauth/application_controller" module Wobauth class AdUsersController < ApplicationController def index if search_params.present? result = SearchAdUserService.new(search_params.to_h).call unless result.success? flash[:error] = result.error_messages.join(", ") end @ad_users = result.ad_users else @ad_users = [] end respond_with(@ad_users) end private def search_params params.permit(:query, :utf8, :authenticity_token, :bci).slice(:query) end end end
Version data entries
15 entries across 15 versions & 1 rubygems