Sha256: 14afc42e619a915954c5d55975f9395c30c8d8f0b73355dcc2b55a748417d970

Contents?: true

Size: 416 Bytes

Versions: 4

Compression:

Stored size: 416 Bytes

Contents

class TranslationViewsGenerator < Rails::Generators::NamedBase
  source_root File.expand_path('../templates', __FILE__)

  def generate
    root = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'app', 'views', 'translation_handler'))
    FileUtils.cp_r root,'app/views/'
    puts 'Your views are at app/views/translate_manager/translations/ .. You can edit it\'s look and feel :-) '
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
translation_handler-0.0.4 lib/generators/translation_views/translation_views_generator.rb
translation_handler-0.0.3 lib/generators/translation_views/translation_views_generator.rb
translation_handler-0.0.2 lib/generators/translation_views/translation_views_generator.rb
translation_handler-0.0.1 lib/generators/translation_views/translation_views_generator.rb