Sha256: c6be58bb89a2ef2ba4ddec7642c98c8c86eace68d339661967d4b62cbc198fdf
Contents?: true
Size: 920 Bytes
Versions: 2
Compression:
Stored size: 920 Bytes
Contents
controller_template: type: file template_path: <%= File.join(templates_directory_path, 'app', 'controllers', "controller.rb.template") %> output_path: <%= File.join('app', 'controllers', "#{@name_plural}_controller.rb") %> views_migrations: type: directory output_path: <%= File.join('app', 'views', @name_plural) %> <% if configatron.mack.testing_framework.to_s == "test_case" -%> 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 configatron.mack.testing_framework.to_s == "rspec" -%> 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mack-0.8.3 | lib/mack/generators/controller_generator/manifest.yml |
mack-0.8.3.1 | lib/mack/generators/controller_generator/manifest.yml |