Module: Ext::Integrations::Organization

Included in:
Organization
Defined in:
app/models/ext/integrations.rb

Class Method Summary collapse

Instance Method Summary collapse

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

Returns:

  • (Boolean)


57
58
59
# File 'app/models/ext/integrations.rb', line 57

def connected?
  false
end

#fspObject



61
62
63
# File 'app/models/ext/integrations.rb', line 61

def fsp
  nil
end

#has_active_fiscally_sponsored_project?Boolean

Returns:

  • (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

Returns:

  • (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_donationsObject



80
81
82
# File 'app/models/ext/integrations.rb', line 80

def name_for_donations
  self.name
end

#refresh_active_fs_projectObject



73
74
# File 'app/models/ext/integrations.rb', line 73

def refresh_active_fs_project
end

#shows_with_salesObject



91
92
93
# File 'app/models/ext/integrations.rb', line 91

def shows_with_sales
  raise "Just use shows"
end


87
88
89
# File 'app/models/ext/integrations.rb', line 87

def sponsored_kit
  nil
end

#update_kitsObject



84
85
# File 'app/models/ext/integrations.rb', line 84

def update_kits
end