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.0.18 lib/generators/wheels/install_generator.rb
wheels-0.0.17 lib/generators/wheels/install_generator.rb
wheels-0.0.16 lib/generators/wheels/install_generator.rb
wheels-0.0.15 lib/generators/wheels/install_generator.rb
wheels-0.0.14 lib/generators/wheels/install_generator.rb
wheels-0.0.13 lib/generators/wheels/install_generator.rb
wheels-0.0.11 lib/generators/wheels/install_generator.rb
wheels-0.0.10 lib/generators/wheels/install_generator.rb
wheels-0.0.9 lib/generators/wheels/install_generator.rb
wheels-0.0.8 lib/generators/wheels/install_generator.rb
wheels-0.0.7 lib/generators/wheels/install_generator.rb
wheels-0.0.6 lib/generators/wheels/install_generator.rb
wheels-0.0.5 lib/generators/wheels/install_generator.rb
wheels-0.0.4 lib/generators/wheels/install_generator.rb
wheels-0.0.3 lib/generators/wheels/install_generator.rb