method
app
v5.2.3 -
Show latest stable
- Class:
Rails::PluginBuilder
app()public
No documentation available.
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 19
def app
if mountable?
if api?
directory "app", exclude_pattern: %{app/(views|helpers)}
else
directory "app"
empty_directory_with_keep_file "app/assets/images/#{namespaced_name}"
end
elsif full?
empty_directory_with_keep_file "app/models"
empty_directory_with_keep_file "app/controllers"
empty_directory_with_keep_file "app/mailers"
unless api?
empty_directory_with_keep_file "app/assets/images/#{namespaced_name}"
empty_directory_with_keep_file "app/helpers"
empty_directory_with_keep_file "app/views"
end
end
end