another set of dynamic finder migrations. All non-cucumber tests pass

This commit is contained in:
Reinier Balt 2013-02-27 11:50:49 +01:00
parent 64a198d45a
commit ef91dd0c64
18 changed files with 66 additions and 66 deletions

View file

@ -350,7 +350,7 @@ class ProjectsController < ApplicationController
p.delete('default_context_name')
unless default_context_name.blank?
default_context = current_user.contexts.find_or_create_by_name(default_context_name)
default_context = current_user.contexts.where(:name => default_context_name).first_or_create
p['default_context_id'] = default_context.id
end
end