Module: PaidUp::Ability

Includes:
CanCan::Ability
Included in:
Ability
Defined in:
app/models/paid_up/ability.rb

Overview

PaidUp Ability model

Instance Method Summary collapse

Instance Method Details

#initialize_paid_up(user) ⇒ Object


8
9
10
11
12
13
# File 'app/models/paid_up/ability.rb', line 8

def initialize_paid_up(user)
  PaidUp::Feature.all.each do |feature|
    method = "enable_#{feature.setting_type}".to_sym
    send(method, user, feature)
  end
end