lib/generators/bootstrap/install/install_generator.rb in twitter-bootstrap-rails-2.2.0 vs lib/generators/bootstrap/install/install_generator.rb in twitter-bootstrap-rails-2.2.1

- old
+ new

@@ -42,9 +42,18 @@ else copy_file "bootstrap_and_overrides.css", "app/assets/stylesheets/bootstrap_and_overrides.css" end end + def add_locale + if File.exist?("config/locales/en.bootstrap.yml") + localez = File.read("config/locales/en.bootstrap.yml") + insert_into_file "config/locales/en.bootstrap.yml", localez, :after => "en\n" + else + copy_file "en.bootstrap.yml", "config/locales/en.bootstrap.yml" + end + end + def cleanup_legacy # Remove old requires (if any) that included twitter/bootstrap directly: gsub_file("app/assets/stylesheets/application.css", %r|\s*\*=\s*twitter/bootstrap\s*\n|, "") gsub_file("app/assets/stylesheets/application.css", %r|\s*\*=\s*twitter/bootstrap_responsive\s*\n|, "") if File.exist?('app/assets/stylesheets/bootstrap_override.css.less')