Sha256: 513c849a00064a4b8299810c53479f7e991f58d725adbd865e26961ec1e3ca8a

Contents?: true

Size: 273 Bytes

Versions: 20

Compression:

Stored size: 273 Bytes

Contents

# frozen_string_literal: true

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.

    initialize_paid_up(user)
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
paid_up-0.13.21 spec/dummy/app/models/ability.rb
paid_up-0.13.17 spec/dummy/app/models/ability.rb
paid_up-0.13.16 spec/dummy/app/models/ability.rb
paid_up-0.13.14 spec/dummy/app/models/ability.rb
paid_up-0.13.13 spec/dummy/app/models/ability.rb
paid_up-0.13.12 spec/dummy/app/models/ability.rb
paid_up-0.13.11 spec/dummy/app/models/ability.rb
paid_up-0.13.10 spec/dummy/app/models/ability.rb
paid_up-0.13.9 spec/dummy/app/models/ability.rb
paid_up-0.13.8 spec/dummy/app/models/ability.rb
paid_up-0.13.7 spec/dummy/app/models/ability.rb
paid_up-0.13.6 spec/dummy/app/models/ability.rb
paid_up-0.13.5 spec/dummy/app/models/ability.rb
paid_up-0.13.4 spec/dummy/app/models/ability.rb
paid_up-0.13.3 spec/dummy/app/models/ability.rb
paid_up-0.13.2 spec/dummy/app/models/ability.rb
paid_up-0.13.1 spec/dummy/app/models/ability.rb
paid_up-0.13.0 spec/dummy/app/models/ability.rb
paid_up-0.12.4 spec/dummy/app/models/ability.rb
paid_up-0.12.3 spec/dummy/app/models/ability.rb