Sha256: 64af5015d7cb33cf8108c9072390b8933c0f46b0ba307904f8f6811704ac9e65
Contents?: true
Size: 808 Bytes
Versions: 55
Compression:
Stored size: 808 Bytes
Contents
class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../../../../', __FILE__) desc "Installs files needed for App Template gem." # argument :scope, :required => false, :default => nil, # :desc => "The scope to copy views to" # class_option :template_engine, :type => :string, :aliases => "-t", # :desc => "Template engine for the views. Available options are 'erb' and 'haml'." def rule generate "devise:install" ["add_fields_to_users.rb", "create_blogs.rb", "create_galleries.rb", "create_images.rb", "create_profiles.rb", "create_roles.rb" ].each {|file| migration_template File.expand(file, 'db/migrate'), "db/migrate/#{file.split('.').first}"} end end
Version data entries
55 entries across 55 versions & 1 rubygems