Sha256: ce88c0964257cabd64d2f6a87bffc561d207c798c9a722d4c23b2b4593473d8c

Contents?: true

Size: 290 Bytes

Versions: 4

Compression:

Stored size: 290 Bytes

Contents

require 'rails/generators/base'

module Haml
  module Generators
    class Locale < Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)

      def generate_locale
        copy_file "en.yml", File.join("config/locales", "en.yml")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
haml-rails-with-i18n-0.1.3 lib/generators/haml/locale/locale_generator.rb
haml-rails-with-i18n-0.1.2 lib/generators/haml/locale/locale_generator.rb
haml-rails-with-i18n-0.1.1 lib/generators/haml/locale/locale_generator.rb
haml-rails-with-i18n-0.1.0 lib/generators/haml/locale/locale_generator.rb