class Graphql::Generators::ScalarGenerator
Generate a scalar type by given name.
“` rails g graphql:scalar Date “`
Public Instance Methods
create_type_file()
click to toggle source
# File lib/generators/graphql/scalar_generator.rb, line 15 def create_type_file template "scalar.erb", "#{options[:directory]}/types/#{type_file_name}.rb" end