Sha256: a96ddabb315409337d40f96cba51ac53246d0a66a7f1110f2317d26633ae2e10

Contents?: true

Size: 445 Bytes

Versions: 6

Compression:

Stored size: 445 Bytes

Contents

require 'rails/generators'
module I18nAdminUtils
  class InstallGenerator < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)
    desc 'Creates a InstallGenerator initializer and copy locale files to your application.'
    def install
      route("mount I18nAdminUtils::Engine => '/', as: 'i18n_admin_utils'")
      template 'initializer.rb', 'config/initializers/i18n_admin_utils.rb'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
i18n_admin_utils-1.1.0 lib/generators/i18n_admin_utils/install_generator.rb
i18n_admin_utils-1.0.0 lib/generators/i18n_admin_utils/install_generator.rb
i18n_admin_utils-0.0.4 lib/generators/i18n_admin_utils/install_generator.rb
i18n_admin_utils-0.0.3 lib/generators/i18n_admin_utils/install_generator.rb
i18n_admin_utils-0.0.2 lib/generators/i18n_admin_utils/install_generator.rb
i18n_admin_utils-0.0.1 lib/generators/i18n_admin_utils/install_generator.rb