Class: Infold::ResourceGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/infold/resource_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_resource_fileObject



7
8
9
10
# File 'lib/generators/infold/resource_generator.rb', line 7

def create_resource_file
  @name = name.camelize.singularize
  template "resource.yml", Rails.root.join("config/infold", "#{@name.underscore}.yml"), skip: true
end