Class: Facet::Generators::FacetGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_facetObject



10
11
12
# File 'lib/generators/facet/facet_generator.rb', line 10

def create_facet
  template "facet.rb.erb", File.join("app/facets/", class_path, "#{file_name}_facet.rb")
end