Sha256: 3462490c9fbf71950d2d4033aa2dd634c11b3e61f72d65726b065c0cd7dcdd25

Contents?: true

Size: 436 Bytes

Versions: 9

Compression:

Stored size: 436 Bytes

Contents

# encoding: utf-8

require 'rails/generators'

module Loaf
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../../../..", __FILE__)

      desc 'Copy locale file to your application'

      def copy_locale
        copy_file "#{self.class.source_root}/config/locales/loaf.en.yml", "config/locales/loaf.en.yml"
      end
    end # InstallGenerator
  end # Generators
end # Loaf

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
loaf-0.10.0 lib/generators/loaf/install_generator.rb
loaf-0.9.0 lib/generators/loaf/install_generator.rb
loaf-0.8.1 lib/generators/loaf/install_generator.rb
loaf-0.8.0 lib/generators/loaf/install_generator.rb
loaf-0.7.0 lib/generators/loaf/install_generator.rb
loaf-0.6.2 lib/generators/loaf/install_generator.rb
loaf-0.6.1 lib/generators/loaf/install_generator.rb
loaf-0.6.0 lib/generators/loaf/install_generator.rb
loaf-0.5.0 lib/generators/loaf/install_generator.rb