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-1.0.0.pre.beta.1 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-1.0.0.pre.beta default_configuration/base_app/backend/app/models/ability.rb
xing-framework-1.0.0.pre.alpha default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.3.2 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.3.1 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.3.0 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.2.9 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.2.9.beta1 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.2.8 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.2.8.beta1 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.2.7 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.2.7.pre.beta1 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.2.6 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.2.5 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.2.4 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.2.3 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.2.2 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.2.1 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.2.0 default_configuration/base_app/backend/app/models/ability.rb
xing-framework-0.0.3 default_configuration/base_app/backend/app/models/ability.rb