Replaced find_all_by through find_by

Find_by_all is removed in Rails 4.1
This commit is contained in:
Chrisbr 2014-04-27 16:27:29 +02:00
parent ee20ecce2f
commit fbda757e70
8 changed files with 19 additions and 19 deletions

View file

@ -7,7 +7,7 @@ class ProposalController < ApplicationController
@person = current_user.person if current_user
#FIXME: @conference also comes from verify_user, but we need setup also in show
# which can be accessed anonymusly
@conference = Conference.find_all_by_short_title(params[:conference_id]).first
@conference = Conference.find_by(short_title: params[:conference_id])
@url = conference_proposal_index_path(@conference.short_title)
@event_types = @conference.event_types
end