lib/rails/graphql/alternative/subscription.rb in rails-graphql-1.0.0.beta vs lib/rails/graphql/alternative/subscription.rb in rails-graphql-1.0.0.rc1
- old
+ new
@@ -8,10 +8,11 @@
class Alternative::Subscription < Alternative::Query
redefine_singleton_method(:type_field_class) { :subscription }
self.abstract = true
class << self
- delegate :scope, :trigger, to: :@field, allow_nil: true
+ delegate :scope, :trigger_for, :trigger, :unsubscribe_from, :unsubscribe,
+ to: :@field, allow_nil: true
end
end
end
end