Sha256: 253c4dc809303b6dd84133132b9fbe4905a2e63e2aaf39e77b195f5fcc9d4303

Contents?: true

Size: 313 Bytes

Versions: 3

Compression:

Stored size: 313 Bytes

Contents

module Devise
  module Views
    class LocaleGenerator < Rails::Generators::NamedBase
      source_root File.expand_path('../../../../../../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

3 entries across 3 versions & 1 rubygems

Version Path
devise-i18n-views-0.2.5 lib/generators/devise/views/locale/locale_generator.rb
devise-i18n-views-0.2.3 lib/generators/devise/views/locale/locale_generator.rb
devise-i18n-views-0.2.2 lib/generators/devise/views/locale/locale_generator.rb