Sha256: b734c85bbed3abe69fd13b8effcad80d62c0edf6c2c8e0a5cfd020e7f1b1f749

Contents?: true

Size: 428 Bytes

Versions: 19

Compression:

Stored size: 428 Bytes

Contents

module Headmin
  class DeviseGenerator < Rails::Generators::Base
    include Rails::Generators::Migration

    source_root File.expand_path("../../templates", __FILE__)

    def copy_controllers
      directory "controllers/auth", "app/controllers/auth"
    end

    def copy_views
      directory "views/auth", "app/views/auth"
      copy_file "views/layouts/auth.html.erb", "app/views/layouts/auth.html.erb"
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
headmin-0.6.3 lib/generators/headmin/devise_generator.rb
headmin-0.6.2 lib/generators/headmin/devise_generator.rb
headmin-0.6.1 lib/generators/headmin/devise_generator.rb
headmin-0.6.0 lib/generators/headmin/devise_generator.rb
headmin-0.5.9 lib/generators/headmin/devise_generator.rb
headmin-0.5.8 lib/generators/headmin/devise_generator.rb
headmin-0.5.7 lib/generators/headmin/devise_generator.rb
headmin-0.5.6 lib/generators/headmin/devise_generator.rb
headmin-0.5.5 lib/generators/headmin/devise_generator.rb
headmin-0.5.4 lib/generators/headmin/devise_generator.rb
headmin-0.5.3 lib/generators/headmin/devise_generator.rb
headmin-0.5.2 lib/generators/headmin/devise_generator.rb
headmin-0.5.1 lib/generators/headmin/devise_generator.rb
headmin-0.5.0 lib/generators/headmin/devise_generator.rb
headmin-0.4.2 lib/generators/headmin/devise_generator.rb
headmin-0.4.1 lib/generators/headmin/devise_generator.rb
headmin-0.4.0 lib/generators/headmin/devise_generator.rb
headmin-0.3.4 lib/generators/headmin/devise_generator.rb
headmin-0.3.3 lib/generators/headmin/devise_generator.rb