lib/crosstie/templates/change_timezone.rb in crosstie-0.0.3 vs lib/crosstie/templates/change_timezone.rb in crosstie-0.0.4

- old
+ new

@@ -1,3 +1,7 @@ # application.rb -# change timezone to beijing -gsub_file "config/application.rb", "# config.time_zone = 'Central Time (US & Canada)'", "config.time_zone = 'Beijing'" +# change timezone to Beijing +inject_into_file 'config/application.rb', after: "# timezone\n" do +<<-EOF + "config.time_zone = 'Beijing'" +EOF +end