Sha256: 560f1cfb1ddb15fc0aeb0056fb7f22bcffab5db2ebc489ea98a6eed4bb77abfc

Contents?: true

Size: 313 Bytes

Versions: 1

Compression:

Stored size: 313 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

1 entries across 1 versions & 1 rubygems

Version Path
fullstack-admin-0.1.11 lib/generators/fullstack/admin/locale_generator.rb