-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: 6.0.0, 7.0.0, 6.1.0, 6.2.0, 6.3.0, 6.4.0
-
Component/s: Persistence
-
None
Public .client_name delegates call to persistence_context.client_name which is private in its turn:
class Band
include Mongoid::Document
end
Band.client_name
The above raises exception:
NoMethodError: private method `client_name' called for #<Mongoid::PersistenceContext:0x000055b495f8ce98> Did you mean? client from /home/ixti/.gem/ruby/2.5.7/gems/mongoid-6.1.1/lib/mongoid/clients/options.rb:61:in `client_name'