Only call add_source in Rails template for Rails 3 apps