Sha256: 091d417d00c723474dfff0e668c580c5eb6a8a49bb02ab87286f591bb9962ed1

Contents?: true

Size: 277 Bytes

Versions: 5

Compression:

Stored size: 277 Bytes

Contents

class Ability
  include CanCan::Ability
  include PaidUp::Ability

  def initialize(user)
    user ||= User.new # anonymous user (not logged in)

    # Rails Application's initialization could go here.
    can :manage, Group, user: user

    initialize_paid_up(user)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
paid_up-0.2.4 spec/dummy/app/models/ability.rb
paid_up-0.2.3 spec/dummy/app/models/ability.rb
paid_up-0.2.2 spec/dummy/app/models/ability.rb
paid_up-0.2.1 spec/dummy/app/models/ability.rb
paid_up-0.2.0 spec/dummy/app/models/ability.rb