Sha256: b170efc9f17f043a800d502fb713180cc9e22787620089dc5bc5ac7a1e588e87

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fullstack-admin-0.1.23 lib/generators/fullstack/admin/locale_generator.rb
fullstack-admin-0.1.20 lib/generators/fullstack/admin/locale_generator.rb