Skip to content

Commit

Permalink
refs frab#124: remove fix missing person, should be a migration
Browse files Browse the repository at this point in the history
  • Loading branch information
manno committed Mar 20, 2014
1 parent 73a424f commit 1ca4efa
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ def setup_user_abilities
can :manage, :all

when /submitter|crew/
fix_missing_person

# submits events to conferences
# edits own events
# manage his account
Expand Down Expand Up @@ -115,11 +113,4 @@ def get_conference_role
return
end

def fix_missing_person
if @user.person.nil?
@user.person ||= Person.new(email: @user.email, public_name: @user.email)
Rails.logger.info "[ !!! ] Missing person object on #{@user.email} was created"
end
end

end

0 comments on commit 1ca4efa

Please sign in to comment.