Sha256: ecda5c3250e52129ecdae4d9fb2c71298187a4f5ac59072c59b068dd5ca2bd58
Contents?: true
Size: 674 Bytes
Versions: 14
Compression:
Stored size: 674 Bytes
Contents
require 'rails' module Alchemy module Generators class DeviseGenerator < ::Rails::Generators::Base desc "This generator copies the Alchemy Devise configuration into your app." source_root File.expand_path('../../../../../config/initializers', File.dirname(__FILE__)) def copy_devise_config copy_file "devise.rb", "#{Rails.root}/config/initializers/devise.rb" msg = <<-MSG If your are upgrading from Alchemy < 2.5.0, alter the encryptor to authlogic_sha512 and the stretches value from 10 to 20: config.stretches = Rails.env.test? ? 1 : 20 config.encryptor = :authlogic_sha512 MSG puts msg end end end end
Version data entries
14 entries across 14 versions & 1 rubygems