instance method
app
Ruby on Rails 4.1.16
Since v3.1.12Signature
app()
No documentation comment.
Source
# File railties/lib/rails/generators/rails/plugin/plugin_generator.rb, line 18
def app
if mountable?
directory 'app'
empty_directory_with_keep_file "app/assets/images/#{name}"
elsif full?
empty_directory_with_keep_file 'app/models'
empty_directory_with_keep_file 'app/controllers'
empty_directory_with_keep_file 'app/views'
empty_directory_with_keep_file 'app/helpers'
empty_directory_with_keep_file 'app/mailers'
empty_directory_with_keep_file "app/assets/images/#{name}"
end
end
Defined in railties/lib/rails/generators/rails/plugin/plugin_generator.rb line 18
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::PluginBuilder