class Ability
  include CanCan::Ability

  def initialize(user)
    user ||= User.new

    if user.has_role? :admin
      can :manage, :all
    else
      can :read, :all
    end

    unless user.id.nil?
      can :vote, Poll
      can [:create, :update], Place
      can [:nominate, :add_options], Poll
    end

  end
end

class Ability
  include CanCan::Ability

  def initialize(user)
    user ||= User.new

    if user.has_role? :admin
      can :manage, :all
    else
      can :read, :all
    end

    unless user.id.nil?
      # Normal logged in users can...
      can [:create, :update], Place # create and update Places
      can [:create, :nominate, :add_options, :vote], Poll # Create, nominate and vote in Polls
    end

  end
end

Allow normal users to create polls, clean up abilities model
Allow normal users to create polls, clean up abilities model
