Class: DataDisplay::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/data_display/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_abilityObject



7
8
9
10
11
12
13
# File 'lib/generators/data_display/install/install_generator.rb', line 7

def generate_ability
  if locale =~ /es$|es-/i
    template "data_display.es.yml", "config/locales/data_display.#{locale}.yml"
  else
    template "data_display.en.yml", "config/locales/data_display.#{locale}.yml"
  end
end