Sha256: b52ffec9e2a24a09433e452e9af06fe3bebf2115e143c2a28c5694c3a090d922

Contents?: true

Size: 617 Bytes

Versions: 7

Compression:

Stored size: 617 Bytes

Contents

require 'rails/generators'
module UserMgmt
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../../templates", __FILE__)

      desc "Creates a UserMgmt initializer and copy locale files to your application."

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

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
user_mgmt-0.0.52 lib/generators/user_mgmt/install_generator.rb
user_mgmt-0.0.513 lib/generators/user_mgmt/install_generator.rb
user_mgmt-0.0.512 lib/generators/user_mgmt/install_generator.rb
user_mgmt-0.0.511 lib/generators/user_mgmt/install_generator.rb
user_mgmt-0.0.51 lib/generators/user_mgmt/install_generator.rb
user_mgmt-0.0.50 lib/generators/user_mgmt/install_generator.rb
user_mgmt-0.0.5 lib/generators/user_mgmt/install_generator.rb