Sha256: 19645e1e36b2dcd05235d67c01f69f44d5b0c341040797debae846d358b87b13

Contents?: true

Size: 316 Bytes

Versions: 7

Compression:

Stored size: 316 Bytes

Contents

module Fullstack
  module Admin
    class LocaleGenerator < Rails::Generators::NamedBase
      source_root File.expand_path('../../../../../locales', __FILE__)
    
      def install
        copy_file "#{name}.yml", Rails.root.join("config", "locales", "fullstack.admin.#{name}.yml")
      end
    
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fullstack-admin-0.1.19 lib/generators/fullstack/admin/locale_generator.rb
fullstack-admin-0.1.18 lib/generators/fullstack/admin/locale_generator.rb
fullstack-admin-0.1.17 lib/generators/fullstack/admin/locale_generator.rb
fullstack-admin-0.1.16 lib/generators/fullstack/admin/locale_generator.rb
fullstack-admin-0.1.15 lib/generators/fullstack/admin/locale_generator.rb
fullstack-admin-0.1.14 lib/generators/fullstack/admin/locale_generator.rb
fullstack-admin-0.1.12 lib/generators/fullstack/admin/locale_generator.rb