Sha256: efb3c4fb9bc2f4eeb5be92891bcdc6a94d01b62fc9ea955001d2c7eca8ed9c04

Contents?: true

Size: 360 Bytes

Versions: 6

Compression:

Stored size: 360 Bytes

Contents

require "rails/generators/migration"

module I18n
  module Object
    module Generators
      class InstallGenerator < ::Rails::Generators::Base
        source_root File.expand_path("./templates", __dir__)

        def copy_file_for_initializer
          copy_file "initializer.tt", "config/initializers/i18n_object.rb"
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
i18n-object-0.1.5 lib/generators/i18n/object/install_generator.rb
i18n-object-0.1.4 lib/generators/i18n/object/install_generator.rb
i18n-object-0.1.3 lib/generators/i18n/object/install_generator.rb
i18n-object-0.1.2 lib/generators/i18n/object/install_generator.rb
i18n-object-0.1.1 lib/generators/i18n/object/install_generator.rb
i18n-object-0.1.0 lib/generators/i18n/object/install_generator.rb