Class: TicketingKit
- Inherits:
-
Kit
- Object
- ActiveRecord::Base
- Kit
- TicketingKit
show all
- Defined in:
- app/models/kits/ticketing_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
11
12
13
|
# File 'app/models/kits/ticketing_kit.rb', line 11
def friendly_name
"Paid Event Ticketing"
end
|
#no_bank_account? ⇒ Boolean
24
25
26
27
|
# File 'app/models/kits/ticketing_kit.rb', line 24
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
19
20
21
22
|
# File 'app/models/kits/ticketing_kit.rb', line 19
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
29
30
31
|
# File 'app/models/kits/ticketing_kit.rb', line 29
def on_pending
AdminMailer.ticketing_kit_notification(self).deliver
end
|
#pitch ⇒ Object
15
16
17
|
# File 'app/models/kits/ticketing_kit.rb', line 15
def pitch
"Sell tickets"
end
|