Sha256: 1c656afe9e1079b2b9655801055e950900abfd5eef684c7710aa7346a8185fea

Contents?: true

Size: 280 Bytes

Versions: 15

Compression:

Stored size: 280 Bytes

Contents

module Identity
  class LocalesGenerator < Rails::Generators::NamedBase
    source_root File.expand_path('../../../../config/locales', __FILE__)
    def copy_locale
      copy_file("#{name}.yml", Rails.root.join("config", "locales", "whoami.views.#{name}.yml"))
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
anadea-identity-0.5.4 lib/generators/identity/locales_generator.rb
anadea-identity-0.5.3 lib/generators/identity/locales_generator.rb
anadea-identity-0.5.2 lib/generators/identity/locales_generator.rb
anadea-identity-0.5.1 lib/generators/identity/locales_generator.rb
anadea-identity-0.5.0 lib/generators/identity/locales_generator.rb
anadea-identity-0.4.2 lib/generators/identity/locales_generator.rb
anadea-identity-0.4.1 lib/generators/identity/locales_generator.rb
anadea-identity-0.4.0 lib/generators/identity/locales_generator.rb
anadea-identity-0.3.3 lib/generators/identity/locales_generator.rb
anadea-identity-0.3.2 lib/generators/identity/locales_generator.rb
anadea-identity-0.3.1 lib/generators/identity/locales_generator.rb
anadea-identity-0.3.0 lib/generators/identity/locales_generator.rb
anadea-identity-0.2.1 lib/generators/identity/locales_generator.rb
anadea-identity-0.2.0 lib/generators/identity/locales_generator.rb
anadea-identity-0.1.0 lib/generators/identity/locales_generator.rb