Sha256: e0a05ec20aa514d139be22f1dae7f87c2defe4509da4320c31dafc3bf8cf4405

Contents?: true

Size: 280 Bytes

Versions: 6

Compression:

Stored size: 280 Bytes

Contents

module Graphql
  class ResolverGenerator < Rails::Generators::NamedBase
    source_root File.expand_path('../templates', __FILE__)

    def create_resolver
      template 'resolver.erb', File.join('app/graphql/resolvers', class_path, "#{file_name}_resolver.rb")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
graphql-sugar-0.1.6 lib/generators/graphql/resolver/resolver_generator.rb
graphql-sugar-0.1.5 lib/generators/graphql/resolver/resolver_generator.rb
graphql-sugar-0.1.4 lib/generators/graphql/resolver/resolver_generator.rb
graphql-sugar-0.1.3 lib/generators/graphql/resolver/resolver_generator.rb
graphql-sugar-0.1.2 lib/generators/graphql/resolver/resolver_generator.rb
graphql-sugar-0.1.1 lib/generators/graphql/resolver/resolver_generator.rb