Class: SobremesaGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- SobremesaGenerator
- Defined in:
- lib/generators/sobremesa/sobremesa_generator.rb
Overview
SobremesaGenerator Generate locales to active_record, views and controllers
Instance Method Summary collapse
Instance Method Details
#gen_init ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/generators/sobremesa/sobremesa_generator.rb', line 11 def gen_init @modules = Array(regular_class_path) .languages.each do |language| @language = language ask_labels unless behavior == :revoke locales_types.each do |locales_type| create_locales(locales_type, language) end end end |