Sha256: 259482d8d2bb019bdeed5ec42393d12bb8d44a869065f08598cbd4906fb6e47f

Contents?: true

Size: 141 Bytes

Versions: 5

Compression:

Stored size: 141 Bytes

Contents

class Ability
  include CanCan::Ability

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

    if user
      can :manage, :all
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_application-0.3.1 spec/dummy/app/models/ability.rb
active_application-0.3.0 spec/dummy/app/models/ability.rb
active_application-0.2.0 spec/dummy/app/models/ability.rb
active_application-0.1.0 spec/dummy/app/models/ability.rb
active_application-0.0.1 spec/dummy/app/models/ability.rb