Sha256: 6d39f268a29b7d88c6ff7cdded4ec36018b2e76804c364e4e4afa3391d6effe0

Contents?: true

Size: 405 Bytes

Versions: 13

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true

module GraphqlRails
  # includes all service object related logic
  module Service
    require 'active_support/concern'
    extend ActiveSupport::Concern

    class_methods do
      def call(*args, **kwargs, &block)
        if kwargs.present?
          new(*args, **kwargs).call(&block)
        else
          new(*args).call(&block)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
graphql_rails-3.0.0 lib/graphql_rails/concerns/service.rb
graphql_rails-2.4.0 lib/graphql_rails/concerns/service.rb
graphql_rails-2.3.0 lib/graphql_rails/concerns/service.rb
graphql_rails-2.2.0 lib/graphql_rails/concerns/service.rb
graphql_rails-2.1.0 lib/graphql_rails/concerns/service.rb
graphql_rails-2.0.0 lib/graphql_rails/concerns/service.rb
graphql_rails-1.2.6 lib/graphql_rails/concerns/service.rb
graphql_rails-1.2.4 lib/graphql_rails/concerns/service.rb
graphql_rails-1.2.3 lib/graphql_rails/concerns/service.rb
graphql_rails-1.2.2 lib/graphql_rails/concerns/service.rb
graphql_rails-1.2.1 lib/graphql_rails/concerns/service.rb
graphql_rails-1.2.0 lib/graphql_rails/concerns/service.rb
graphql_rails-1.1.0 lib/graphql_rails/concerns/service.rb