Sha256: 12e602046d52122556762befd9ef5149dd0f295cc91f8763548e48d9f1b1dc80

Contents?: true

Size: 587 Bytes

Versions: 4

Compression:

Stored size: 587 Bytes

Contents

module Alchemy
  module Devise
    module Generators
      class InstallGenerator < Rails::Generators::Base
        desc "Installs Alchemy Devise based authentication into your app."
        source_root File.expand_path('templates', File.dirname(__FILE__))

        def copy_devise_config
          template 'devise.rb.tt', 'config/initializers/devise.rb'
        end

        def add_migrations
          run 'bundle exec rake alchemy_devise:install:migrations'
        end

        def run_migrations
          run 'bundle exec rake db:migrate'
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alchemy-devise-3.3.0 lib/generators/alchemy/devise/install/install_generator.rb
alchemy-devise-3.2.0 lib/generators/alchemy/devise/install/install_generator.rb
alchemy-devise-2.1.0 lib/generators/alchemy/devise/install/install_generator.rb
alchemy-devise-2.1.0.beta3 lib/generators/alchemy/devise/install/install_generator.rb