Module: GraphQR::ScopeItems
- Defined in:
- lib/graphqr/scope_items.rb
Overview
TODO: add documentation
Instance Method Summary collapse
Instance Method Details
#scope_items(items, context) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/graphqr/scope_items.rb', line 7 def scope_items(items, context) if scopable_items?(items) context[:policy_provider].(records: items) else items end end |