Sha256: e2f43030289c4f787a013f3853b2ca26bd3c0ec2c49e8b2f55c4e997c32ab317

Contents?: true

Size: 245 Bytes

Versions: 21

Compression:

Stored size: 245 Bytes

Contents

class Ability
  include CanCan::Ability

  def initialize(user)
    if user.present?
      user.role.set_abilities(self)

      # add common abilies to logged_in users
    else
      # add common abilities to public users here
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
xing-framework-0.0.2 default_configuration/base_app/backend/app/models/ability.rb