Sha256: 61a4914b2c5e0bfa8bc8dfb50766287be3d1654de73495abd514df3a743c5b85

Contents?: true

Size: 311 Bytes

Versions: 31

Compression:

Stored size: 311 Bytes

Contents

module Devise
  module I18n
    class LocaleGenerator < Rails::Generators::NamedBase
      source_root File.expand_path("../../../../../rails/locales", __FILE__)
      def copy_locale
        copy_file("#{name}.yml", Rails.root.join("config", "locales", "devise.views.#{name}.yml"))
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
devise-i18n-1.12.0 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.11.1 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.11.0 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.10.3 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.10.2 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.10.1 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.10.0 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.9.4 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.9.3 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.9.2 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.9.1 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.9.0 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.8.2 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.8.1 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.8.0 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.7.2 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.7.1 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.7.0 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.6.5 lib/generators/devise/i18n/locale_generator.rb
devise-i18n-1.6.4 lib/generators/devise/i18n/locale_generator.rb