Module: GraphitiGql::SpecHelper::ScopeTrackable
- Defined in:
- lib/graphiti_gql/spec_helper.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.prepended(klass) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/graphiti_gql/spec_helper.rb', line 6 def self.prepended(klass) klass.class_eval do class << self attr_accessor :resolved_scope end end end |
Instance Method Details
#resolve(scope) ⇒ Object
14 15 16 17 |
# File 'lib/graphiti_gql/spec_helper.rb', line 14 def resolve(scope) self.class.resolved_scope = scope super end |