Class: InheritedResourcesViewsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- InheritedResourcesViewsGenerator
- Defined in:
- lib/generators/inherited_resources_views/inherited_resources_views_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_locale ⇒ Object
23 24 25 |
# File 'lib/generators/inherited_resources_views/inherited_resources_views_generator.rb', line 23 def copy_locale copy_file "locales/en.yml", "config/locales/inherited_resources.en.yml" end |
#copy_views ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/generators/inherited_resources_views/inherited_resources_views_generator.rb', line 12 def copy_views case [:template_engine].to_s when 'haml' verify_haml_existence verify_haml_version create_and_copy_haml_views else directory "views/#{layout}", "app/views/inherited_resources" end end |