Class: RailsAdminImageManager::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RailsAdminImageManager::Generators::InstallGenerator
- Defined in:
- lib/generators/rails_admin_image_manager/install/install_generator.rb
Instance Method Summary collapse
- #configure_dynamic_paperclip ⇒ Object
- #create_migrations ⇒ Object
-
#setup_route ⇒ Object
desc “Installs RailsAdminImageManager into your app.
Instance Method Details
#configure_dynamic_paperclip ⇒ Object
16 17 18 |
# File 'lib/generators/rails_admin_image_manager/install/install_generator.rb', line 16 def configure_dynamic_paperclip generate "dynamic_paperclip:install" end |
#create_migrations ⇒ Object
12 13 14 |
# File 'lib/generators/rails_admin_image_manager/install/install_generator.rb', line 12 def create_migrations rake "rails_admin_image_manager:install:migrations" end |
#setup_route ⇒ Object
desc “Installs RailsAdminImageManager into your app. Get wealthy.”
8 9 10 |
# File 'lib/generators/rails_admin_image_manager/install/install_generator.rb', line 8 def setup_route route "mount RailsAdminImageManager::Engine => '/admin/image-manager', as: 'image_manager'" end |