Sha256: 21f2c4ff1f5cd34e7d1395a0c18699378933eb8f16b5580acd4664fe4d3069ec

Contents?: true

Size: 544 Bytes

Versions: 3

Compression:

Stored size: 544 Bytes

Contents

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

        def rake_db
          rake "refinery_authentication:install:migrations"
        end

        def generate_authentication_devise_initializer
          template "config/initializers/refinery/authentication/devise.rb.erb",
                   File.join(destination_root, "config", "initializers", "refinery", "authentication.rb")
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
refinerycms-authentication-devise-1.0.2 lib/generators/refinery/authentication/devise/generator.rb
refinerycms-authentication-devise-1.0.1 lib/generators/refinery/authentication/devise/generator.rb
refinerycms-authentication-devise-1.0.0 lib/generators/refinery/authentication/devise/generator.rb