clean up profile generation (wip)
This commit is contained in:
@ -13,7 +13,7 @@ class EventsController < ApplicationController
|
||||
# GET /events/new
|
||||
def new
|
||||
kind = params[:profile]
|
||||
kind = Profile.types.first unless Profile.types.include?(kind)
|
||||
kind = Profile.kinds.first unless Profile.kinds.include?(kind)
|
||||
profile = current_member.profile(kind)
|
||||
if(profile)
|
||||
@event = Event.new profile: profile
|
||||
|
@ -13,7 +13,7 @@ class ProfilesController < ApplicationController
|
||||
# GET /profiles/new
|
||||
def new
|
||||
kind = params[:kind]
|
||||
kind = Profile.types.first unless Profile.types.include?(kind)
|
||||
kind = Profile.kinds.first unless Profile.kinds.include?(kind)
|
||||
@profile = Profile.new kind: kind
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user