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

Version Path
wheels-0.1.8 lib/generators/wheels/install_generator.rb
wheels-0.1.7 lib/generators/wheels/install_generator.rb
wheels-0.1.6 lib/generators/wheels/install_generator.rb
wheels-0.1.5 lib/generators/wheels/install_generator.rb
wheels-0.1.4 lib/generators/wheels/install_generator.rb
wheels-0.1.3 lib/generators/wheels/install_generator.rb
wheels-0.1.2 lib/generators/wheels/install_generator.rb
wheels-0.1.1 lib/generators/wheels/install_generator.rb
wheels-0.1.0 lib/generators/wheels/install_generator.rb
wheels-0.0.49 lib/generators/wheels/install_generator.rb
wheels-0.0.48 lib/generators/wheels/install_generator.rb
wheels-0.0.47 lib/generators/wheels/install_generator.rb
wheels-0.0.46 lib/generators/wheels/install_generator.rb
wheels-0.0.45 lib/generators/wheels/install_generator.rb
wheels-0.0.44 lib/generators/wheels/install_generator.rb
wheels-0.0.43 lib/generators/wheels/install_generator.rb
wheels-0.0.42 lib/generators/wheels/install_generator.rb
wheels-0.0.41 lib/generators/wheels/install_generator.rb
wheels-0.0.40 lib/generators/wheels/install_generator.rb
wheels-0.0.39 lib/generators/wheels/install_generator.rb