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
186
187
188
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 186
def build_organization(params = {})
self.organization = EffectiveMemberships.Organization.new(params)
end
|
#done? ⇒ Boolean
203
204
205
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 203
def done?
submitted?
end
|
#in_progress? ⇒ Boolean
199
200
201
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 199
def in_progress?
draft?
end
|
#owner ⇒ Object
178
179
180
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 178
def owner
organization || user
end
|
#owner_symbol ⇒ Object
182
183
184
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 182
def owner_symbol
organization? ? :organization : :user
end
|
#reset! ⇒ Object
211
212
213
214
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 211
def reset!
assign_attributes(wizard_steps: wizard_steps.slice(:start))
save!
end
|
#select! ⇒ Object
207
208
209
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 207
def select!
reset!
end
|
#to_s ⇒ Object
174
175
176
|
# File 'app/models/concerns/effective_memberships_fee_payment.rb', line 174
def to_s
'Fee Payment'
end
|