Sha256: 16f0f6ed00545d97c0e64d803cd607a40d2cf2b11ce644af3d3f2d3e8b90b3a0

Contents?: true

Size: 1.56 KB

Versions: 1

Compression:

Stored size: 1.56 KB

Contents

<% if app_config.orm -%>
controller_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "generic", "app", "controllers", "controller.rb.template") %>
  output_path: <%= File.join("app", "controllers", "#{@name_plural}_controller.rb") %>
edit_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "generic", "app", "views", "edit.html.erb.template") %>
  output_path: <%= File.join("app", "views", @name_plural, "edit.html.erb") %>
index_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "generic", "app", "views", "index.html.erb.template") %>
  output_path: <%= File.join("app", "views", @name_plural, "index.html.erb") %>
new_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "generic", "app", "views", "new.html.erb.template") %>
  output_path: <%= File.join("app", "views", @name_plural, "new.html.erb") %>
show_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "generic", "app", "views", "show.html.erb.template") %>
  output_path: <%= File.join("app", "views", @name_plural, "show.html.erb") %>
<% else -%>
controller_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "no_orm", "controller.rb.template") %>
  output_path: <%= File.join("app", "controllers", "#{@name_plural}_controller.rb") %>
<% end -%>
functional_teat_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "test.rb.template") %>
  output_path: <%= File.join("test", "functional", "#{@name_plural}_controller_test.rb") %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mack-0.4.7 lib/generators/scaffold_generator/manifest.yml