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.38 lib/generators/wheels/install_generator.rb
wheels-0.0.37 lib/generators/wheels/install_generator.rb
wheels-0.0.36 lib/generators/wheels/install_generator.rb
wheels-0.0.35 lib/generators/wheels/install_generator.rb
wheels-0.0.34 lib/generators/wheels/install_generator.rb
wheels-0.0.33 lib/generators/wheels/install_generator.rb
wheels-0.0.32 lib/generators/wheels/install_generator.rb
wheels-0.0.31 lib/generators/wheels/install_generator.rb
wheels-0.0.30 lib/generators/wheels/install_generator.rb
wheels-0.0.29 lib/generators/wheels/install_generator.rb
wheels-0.0.28 lib/generators/wheels/install_generator.rb
wheels-0.0.27 lib/generators/wheels/install_generator.rb
wheels-0.0.26 lib/generators/wheels/install_generator.rb
wheels-0.0.25 lib/generators/wheels/install_generator.rb
wheels-0.0.24 lib/generators/wheels/install_generator.rb
wheels-0.0.23 lib/generators/wheels/install_generator.rb
wheels-0.0.22 lib/generators/wheels/install_generator.rb
wheels-0.0.21 lib/generators/wheels/install_generator.rb
wheels-0.0.20 lib/generators/wheels/install_generator.rb
wheels-0.0.19 lib/generators/wheels/install_generator.rb