Sha256: ea66bd36853545c48b62e8b26ddf375eb3c24474b2280a9639a7740cb324dd4f

Contents?: true

Size: 599 Bytes

Versions: 74

Compression:

Stored size: 599 Bytes

Contents

require 'securerandom'

module Devise
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../../templates", __FILE__)

      desc "Creates a Devise initializer and copy locale files to your application."
      class_option :orm

      def copy_initializer
        template "devise.rb", "config/initializers/devise.rb"
      end

      def copy_locale
        copy_file "../../../config/locales/en.yml", "config/locales/devise.en.yml"
      end

      def show_readme
        readme "README" if behavior == :invoke
      end
    end
  end
end

Version data entries

74 entries across 69 versions & 9 rubygems

Version Path
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/lib/generators/devise/install_generator.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/lib/generators/devise/install_generator.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/lib/generators/devise/install_generator.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/lib/generators/devise/install_generator.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/lib/generators/devise/install_generator.rb
devise-2.1.2 lib/generators/devise/install_generator.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/lib/generators/devise/install_generator.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/lib/generators/devise/install_generator.rb
rmello-devise-2.1.0.2 lib/generators/devise/install_generator.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/devise-2.0.4/lib/generators/devise/install_generator.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/lib/generators/devise/install_generator.rb
devise-2.1.0 lib/generators/devise/install_generator.rb
devise-2.1.0.rc2 lib/generators/devise/install_generator.rb
upstream-devise-2.1.0.rc lib/generators/devise/install_generator.rb
devise-2.1.0.rc lib/generators/devise/install_generator.rb
devise-2.0.4 lib/generators/devise/install_generator.rb
devise-2.0.2 lib/generators/devise/install_generator.rb
devise-2.0.1 lib/generators/devise/install_generator.rb
devise-2.0.0 lib/generators/devise/install_generator.rb
devise-2.0.0.rc2 lib/generators/devise/install_generator.rb