Class: ResellerKit
- Inherits:
-
Kit
- Object
- ActiveRecord::Base
- Kit
- ResellerKit
show all
- Defined in:
- app/models/kits/reseller_kit.rb
Instance Method Summary
collapse
Methods inherited from Kit
#abilities, #activatable?, activate, activation_requirements, acts_as_kit, #admin_approvable?, admin_approval_requirements, admin_approve, #alternatives, #approvable?, approval_requirements, approve, #has_alternatives?, mailchimp, pad_with_new_kits, #requirements_met?, subklasses, visible, when_active
#record_activation, #record_approval
Instance Method Details
#friendly_name ⇒ Object
12
13
14
|
# File 'app/models/kits/reseller_kit.rb', line 12
def friendly_name
"Reseller Ticketing"
end
|
#no_bank_account? ⇒ Boolean
25
26
27
28
|
# File 'app/models/kits/reseller_kit.rb', line 25
def no_bank_account?
errors.add(:requirements, "Your organization needs bank account information first.") if organization.bank_account.nil?
organization.bank_account.nil?
end
|
#no_owner? ⇒ Boolean
20
21
22
23
|
# File 'app/models/kits/reseller_kit.rb', line 20
def no_owner?
errors.add(:requirements, "You need to be part of an organization to activate this kit.") if organization.owner.nil?
organization.owner.nil?
end
|
#on_pending ⇒ Object
30
31
32
|
# File 'app/models/kits/reseller_kit.rb', line 30
def on_pending
AdminMailer.reseller_kit_notification(self).deliver
end
|
#pitch ⇒ Object
16
17
18
|
# File 'app/models/kits/reseller_kit.rb', line 16
def pitch
"Resell tickets from other producers on your own website."
end
|