Module: Ext::Integrations::Organization
- Included in:
- Organization
- Defined in:
- app/models/ext/integrations.rb
Class Method Summary collapse
Instance Method Summary collapse
- #connected? ⇒ Boolean
- #fsp ⇒ Object
- #has_active_fiscally_sponsored_project? ⇒ Boolean
- #has_fiscally_sponsored_project? ⇒ Boolean
- #items_sold_as_reseller_during(date_range) ⇒ Object
- #name_for_donations ⇒ Object
- #refresh_active_fs_project ⇒ Object
- #shows_with_sales ⇒ Object
- #sponsored_kit ⇒ Object
- #update_kits ⇒ Object
Class Method Details
.included(base) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'app/models/ext/integrations.rb', line 43 def self.included(base) base.class_eval do after_create do [TicketingKit,RegularDonationKit,MembershipKit,PassesKit].each do |klass| kit = klass.new kit.state = 'activated' kit.organization = self kit.save end end validates_presence_of :name, :email, :time_zone end end |
Instance Method Details
#connected? ⇒ Boolean
57 58 59 |
# File 'app/models/ext/integrations.rb', line 57 def connected? false end |
#fsp ⇒ Object
61 62 63 |
# File 'app/models/ext/integrations.rb', line 61 def fsp nil end |
#has_active_fiscally_sponsored_project? ⇒ Boolean
65 66 67 |
# File 'app/models/ext/integrations.rb', line 65 def has_active_fiscally_sponsored_project? false end |
#has_fiscally_sponsored_project? ⇒ Boolean
69 70 71 |
# File 'app/models/ext/integrations.rb', line 69 def has_fiscally_sponsored_project? false end |
#items_sold_as_reseller_during(date_range) ⇒ Object
76 77 78 |
# File 'app/models/ext/integrations.rb', line 76 def items_sold_as_reseller_during(date_range) [] end |
#name_for_donations ⇒ Object
80 81 82 |
# File 'app/models/ext/integrations.rb', line 80 def name_for_donations self.name end |
#refresh_active_fs_project ⇒ Object
73 74 |
# File 'app/models/ext/integrations.rb', line 73 def refresh_active_fs_project end |
#shows_with_sales ⇒ Object
91 92 93 |
# File 'app/models/ext/integrations.rb', line 91 def shows_with_sales raise "Just use shows" end |
#sponsored_kit ⇒ Object
87 88 89 |
# File 'app/models/ext/integrations.rb', line 87 def sponsored_kit nil end |
#update_kits ⇒ Object
84 85 |
# File 'app/models/ext/integrations.rb', line 84 def update_kits end |