Fix processing of production.rb in Rails 3

fixes #264
Merge pull request #265 from presidentbeef/fix_processing_production_rb

Fix processing of production.rb in Rails 3