mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Replaced find_all_by through find_by
Find_by_all is removed in Rails 4.1
This commit is contained in:
parent
ee20ecce2f
commit
fbda757e70
8 changed files with 19 additions and 19 deletions
|
|
@ -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.find_by(short_title: params[:conference_id])
|
||||
end
|
||||
|
||||
def create
|
||||
@conference = Conference.find_all_by_short_title(params[:conference_id]).first
|
||||
@conference = Conference.find_by(short_title: params[:conference_id])
|
||||
email = params[:registration][:person].delete(:user)[:email]
|
||||
@person = Person.find_by_email email
|
||||
@registration = nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue