Sha256: 8f5cb3df8d98d0aadd711eefe1e7a833ecd0ce78a4a555d0eec448b6c7ec6bf1

Contents?: true

Size: 393 Bytes

Versions: 4

Compression:

Stored size: 393 Bytes

Contents

require 'rails/railtie'

class I18nScaffoldControllerTemplate
  class Railtie < ::Rails::Railtie
    if Rails::VERSION::MAJOR >= 4
      generators do |app|
        Rails::Generators.configure! app.config.generators
        Rails::Generators.hidden_namespaces.uniq!
        require 'i18n_scaffold_controller_template/generators/rails/scaffold_controller_generator'
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
i18n_scaffold_controller_template-2.1.0 lib/i18n_scaffold_controller_template/railtie.rb
i18n_scaffold_controller_template-2.0.0 lib/i18n_scaffold_controller_template/railtie.rb
i18n_scaffold_controller_template-1.1.1 lib/i18n_scaffold_controller_template/railtie.rb
i18n_scaffold_controller_template-1.1.0 lib/i18n_scaffold_controller_template/railtie.rb