Rails3: before_save: app/models/repository.rb