Module: DataloaderRelationProxy::Lazy::Authorizer
- Defined in:
- lib/dataloader_relation_proxy/lazy.rb
Overview
Prepended to type classes in order to change the authorized? interface
Instance Method Summary collapse
Instance Method Details
#authorized?(object, context) ⇒ Boolean
18 19 20 21 22 23 24 |
# File 'lib/dataloader_relation_proxy/lazy.rb', line 18 def (object, context) if object.is_a?(DataloaderRelationProxy) super(object, context) else super(DataloaderRelationProxy.for(object.class).new(object, context.dataloader), context) end end |