Sha256: b3ecf49023f092dffe3b80c2549cb6a4640ee3af9537141c51a7a01a24058bc4

Contents?: true

Size: 450 Bytes

Versions: 2

Compression:

Stored size: 450 Bytes

Contents

module I18nline
  module Generators
    class InstallGenerator < Rails::Generators::Base
      desc "Copy i18nline default files"
      source_root File.expand_path('../templates', __FILE__)

      def copy_config
        template "config/initializers/i18nline.rb"
      end

      def create_migrations
        migration_template 'migrations/create_i18nline_translations.rb', 'db/migrate/create_i18nline_translations.rb'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
i18nline-0.0.4.alpha lib/generators/i18nline/install_generator.rb
i18nline-0.0.3.alpha lib/generators/i18nline/install_generator.rb