Sha256: c4b9837460e351ada87b45bc86cbb6da79b8764d5b7e826b29d1659c00d81818
Contents?: true
Size: 877 Bytes
Versions: 1
Compression:
Stored size: 877 Bytes
Contents
require 'rails/generators' module Flexi module Generators class ConfigGenerator < ::Rails::Generators::Base desc "This generator sets to my default settings" source_root File.expand_path("../templates", __FILE__) def config_app remove_file "public/index.html" copy_file "pt-BR.yml", "config/locales/pt-BR.yml" copy_file "inflector_portuguese.rb", "config/initializers/inflector_portuguese.rb" copy_file "field_error.rb", "config/initializers/field_error.rb" copy_file "will_paginate.rb", "config/initializers/will_paginate.rb" inject_into_class "config/application.rb", "Application","\tconfig.i18n.default_locale = 'pt-BR'\n" inject_into_class "config/application.rb", "Application","\tconfig.time_zone = 'Brasilia'\n" gem 'will_paginate', '~> 3.0' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flexi_generators-0.3.0 | lib/generators/flexi/config/config_generator.rb |