method
app
v3.1.0 -
Show latest stable
- Class:
Rails::PluginBuilder
app()public
No documentation available.
# File railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb, line 11
def app
if mountable?
directory "app"
empty_directory_with_gitkeep "app/assets/images/#{name}"
elsif full?
empty_directory_with_gitkeep "app/models"
empty_directory_with_gitkeep "app/controllers"
empty_directory_with_gitkeep "app/views"
empty_directory_with_gitkeep "app/helpers"
empty_directory_with_gitkeep "app/mailers"
empty_directory_with_gitkeep "app/assets/images/#{name}"
end
end