Class: YahooWeather::Generators::CopyLocaleGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- YahooWeather::Generators::CopyLocaleGenerator
- Defined in:
- lib/generators/yahoo_weather/copy_locale_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_locale ⇒ Object
6 7 8 |
# File 'lib/generators/yahoo_weather/copy_locale_generator.rb', line 6 def copy_locale copy_file "config/locales/#{locale.underscore}.yml", "config/locales/yahoo_weather.#{locale.underscore}.yml" end |