Sha256: d2e8478608bb142e3766d0721cc19f0d1d0e8c974feaf9b59c20f56f8d7fdb2c

Contents?: true

Size: 448 Bytes

Versions: 15

Compression:

Stored size: 448 Bytes

Contents

module EffectiveRoles
  module Generators
    class InstallGenerator < Rails::Generators::Base
      desc "Creates an EffectiveRoles initializer in your application."

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

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
effective_roles-1.3.7 lib/generators/effective_roles/install_generator.rb
effective_roles-1.3.6 lib/generators/effective_roles/install_generator.rb
effective_roles-1.3.5 lib/generators/effective_roles/install_generator.rb
effective_roles-1.3.4 lib/generators/effective_roles/install_generator.rb
effective_roles-1.3.3 lib/generators/effective_roles/install_generator.rb
effective_roles-1.3.2 lib/generators/effective_roles/install_generator.rb
effective_roles-1.3.1 lib/generators/effective_roles/install_generator.rb
effective_roles-1.3.0 lib/generators/effective_roles/install_generator.rb
effective_roles-1.2.1 lib/generators/effective_roles/install_generator.rb
effective_roles-1.2.0 lib/generators/effective_roles/install_generator.rb
effective_roles-1.1.0 lib/generators/effective_roles/install_generator.rb
effective_roles-1.0.2 lib/generators/effective_roles/install_generator.rb
effective_roles-1.0.1 lib/generators/effective_roles/install_generator.rb
effective_roles-1.0.0 lib/generators/effective_roles/install_generator.rb
effective_roles-0.1 lib/generators/effective_roles/install_generator.rb