Module: EffectiveMembershipsFeePayment
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/effective_memberships_fee_payment.rb
Overview
EffectiveMembershipsFeePayment
Mark your model with effective_memberships_fee_payment to get all the includes
Defined Under Namespace
Modules: Base, ClassMethods
Instance Method Summary
collapse
Instance Method Details
#build_organization(params = {}) ⇒ Object
172
173
174
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 172
def build_organization(params = {})
self.organization = EffectiveMemberships.Organization.new(params)
end
|
#done? ⇒ Boolean
189
190
191
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 189
def done?
submitted?
end
|
#in_progress? ⇒ Boolean
185
186
187
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 185
def in_progress?
draft?
end
|
#owner ⇒ Object
164
165
166
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 164
def owner
organization || user
end
|
#owner_symbol ⇒ Object
168
169
170
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 168
def owner_symbol
organization? ? :organization : :user
end
|
#reset! ⇒ Object
197
198
199
200
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 197
def reset!
assign_attributes(wizard_steps: wizard_steps.slice(:start))
save!
end
|
#select! ⇒ Object
193
194
195
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 193
def select!
reset!
end
|
#to_s ⇒ Object
160
161
162
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 160
def to_s
'Fee Payment'
end
|