Update project.rb

moved assignment to returned value from if/else condition