Sha256: ce7fc0d3f3893621bd0b0f4b7497d783560ab36446fc74d49e846ae89a180577
Contents?: true
Size: 1.6 KB
Versions: 4
Compression:
Stored size: 1.6 KB
Contents
controller_template: type: file template_path: <%= Mack::Database::Generators.controller_template_location %> output_path: <%= File.join("app", "controllers", "#{@name_plural}_controller.rb") %> edit_template: type: file template_path: <%= File.join(templates_directory_path, "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, "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, "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, "app", "views", "show.html.erb.template") %> output_path: <%= File.join("app", "views", @name_plural, "show.html.erb") %> <% if app_config.mack.testing_framework == "test_case" -%> functional_test_template: type: file template_path: <%= File.join(templates_directory_path, "test", "controllers", "test_case.rb.template") %> output_path: <%= File.join("test", "controllers", "#{@name_plural}_controller_test.rb") %> <% elsif app_config.mack.testing_framework == "rspec" -%> functional_test_template: type: file template_path: <%= File.join(templates_directory_path, "test", "controllers", "rspec.rb.template") %> output_path: <%= File.join("test", "controllers", "#{@name_plural}_controller_spec.rb") %> <% end -%>
Version data entries
4 entries across 4 versions & 1 rubygems