Class: RailsAdminImageManager::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/rails_admin_image_manager/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#configure_dynamic_paperclipObject



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_migrationsObject



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_routeObject

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