Removed in rails 4.1 .find_all_by_ replaced by .where

This commit is contained in:
Chrisbr 2014-04-27 14:37:34 +02:00
parent ee20ecce2f
commit f87873d958
8 changed files with 19 additions and 19 deletions

View file

@ -53,11 +53,11 @@ class Admin::RegistrationsController < ApplicationController
@person = Person.new
@registration = @person.registrations.new
@supporter_registration = @conference.supporter_registrations.new
@conference = Conference.find_all_by_short_title(params[:conference_id]).first
@conference = Conference.where(short_title: params[:conference_id]).first
end
def create
@conference = Conference.find_all_by_short_title(params[:conference_id]).first
@conference = Conference.where(short_title: params[:conference_id]).first
email = params[:registration][:person].delete(:user)[:email]
@person = Person.find_by_email email
@registration = nil