Sha256: 285c36277a38806897619845c0053439488ff99066e16f11a1d374d65261ab1a

Contents?: true

Size: 336 Bytes

Versions: 20

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true

# CanCanCan Ability class
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

20 entries across 20 versions & 1 rubygems

Version Path
paid_up-0.13.21 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.17 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.16 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.14 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.13 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.12 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.11 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.10 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.9 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.8 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.7 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.6 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.5 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.4 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.3 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.2 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.1 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.13.0 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.12.4 lib/generators/paid_up/install/templates/ability.rb
paid_up-0.12.3 lib/generators/paid_up/install/templates/ability.rb