active_directory icon indicating copy to clipboard operation
active_directory copied to clipboard

updating from 1.6.0 -> 1.6.1 means that you will need require 'active_directory' even if loaded from Gemfile

Open freibuis opened this issue 9 years ago • 2 comments

Hi,

since updating to revision 1.6.1 you will need to use

require 'active_directory'

regardless if you run this from bundle exec

otherwise when you run

ActiveDirectory::Base.setup(settings)

you will get

uninitialized constant ActiveDirectory::Base

this breaks behavior from 1.6.0

freibuis avatar Jun 04 '15 02:06 freibuis

Sorry for the inconvenience. As the gem as no bin, could you tell me what you are trying to exec ?

Mazwak avatar Jun 04 '15 09:06 Mazwak

ok add the gem to you Gemfile require 'active_directory'

add a config or initializer that has the setting for the ActiveDirectory::Base.setup(settings)

bundle exec rails c

ActiveDirectory::User.find(:first, :userprincipalname => "[email protected]")

you will get

uninitialized constant ActiveDirectory::Base

The way around this would be to use require 'active_directory' in side the config or initializer

Thats the problem. 1.6.0 didnt need this. If the gem was in the gem file then it automatically required.

freibuis avatar Jun 04 '15 11:06 freibuis