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

Version Path
wobauth-6.0.1 app/controllers/wobauth/ad_users_controller.rb
wobauth-6.0.0 app/controllers/wobauth/ad_users_controller.rb
wobauth-5.1.3 app/controllers/wobauth/ad_users_controller.rb
wobauth-5.1.2 app/controllers/wobauth/ad_users_controller.rb
wobauth-5.1.1 app/controllers/wobauth/ad_users_controller.rb
wobauth-5.1.0 app/controllers/wobauth/ad_users_controller.rb
wobauth-5.0.2 app/controllers/wobauth/ad_users_controller.rb
wobauth-5.0.1 app/controllers/wobauth/ad_users_controller.rb
wobauth-5.0.0 app/controllers/wobauth/ad_users_controller.rb
wobauth-4.0.0 app/controllers/wobauth/ad_users_controller.rb
wobauth-3.4.8 app/controllers/wobauth/ad_users_controller.rb
wobauth-3.4.7 app/controllers/wobauth/ad_users_controller.rb
wobauth-3.4.6 app/controllers/wobauth/ad_users_controller.rb
wobauth-3.4.5 app/controllers/wobauth/ad_users_controller.rb
wobauth-3.4.4 app/controllers/wobauth/ad_users_controller.rb