Module: EffectiveMemberships
- Includes:
- EffectiveGem
- Defined in:
- lib/effective_memberships.rb,
lib/effective_memberships/engine.rb,
lib/effective_memberships/version.rb,
lib/generators/effective_memberships/install_generator.rb
Defined Under Namespace
Modules: Generators Classes: Engine
Constant Summary collapse
- VERSION =
'0.12.3'
Class Method Summary collapse
- .Applicant ⇒ Object
- .applicant_reviews? ⇒ Boolean
- .ApplicantReview ⇒ Object
- .Category ⇒ Object
- .config_keys ⇒ Object
-
.custom_fee_types ⇒ Object
You can delete these if unpurchased.
- .fee_types ⇒ Object
- .FeePayment ⇒ Object
- .mailer_class ⇒ Object
- .MembershipCard ⇒ Object
- .MembershipDirectory ⇒ Object
- .Organization ⇒ Object
-
.Registrar ⇒ Object
Singleton.
- .Status ⇒ Object
Class Method Details
.Applicant ⇒ Object
27 28 29 |
# File 'lib/effective_memberships.rb', line 27 def self.Applicant applicant_class_name&.constantize || Effective::Applicant end |
.applicant_reviews? ⇒ Boolean
72 73 74 |
# File 'lib/effective_memberships.rb', line 72 def self.applicant_reviews? applicant_reviews == true end |
.ApplicantReview ⇒ Object
31 32 33 |
# File 'lib/effective_memberships.rb', line 31 def self.ApplicantReview applicant_review_class_name&.constantize || Effective::ApplicantReview end |
.Category ⇒ Object
19 20 21 |
# File 'lib/effective_memberships.rb', line 19 def self.Category category_class_name&.constantize || Effective::Category end |
.config_keys ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/effective_memberships.rb', line 7 def self.config_keys [ :documents_table_name, :categories_table_name, :applicants_table_name, :applicant_reviews_table_name, :fee_payments_table_name, :organizations_table_name, :representatives_table_name, :statuses_table_name, :category_class_name, :organization_class_name, :applicant_class_name, :applicant_review_class_name, :fee_payment_class_name, :registrar_class_name, :membership_card_class_name, :membership_directory_class_name, :status_class_name, :additional_fee_types, :applicant_reviews, :applicant_endorsements_endorser_collection, :document_categories, :layout, :mailer, :parent_mailer, :deliver_method, :mailer_layout, :mailer_sender, :mailer_admin, :mailer_subject, :use_effective_email_templates ] end |
.custom_fee_types ⇒ Object
You can delete these if unpurchased
68 69 70 |
# File 'lib/effective_memberships.rb', line 68 def self.custom_fee_types ['Admin'] end |
.fee_types ⇒ Object
60 61 62 63 64 65 |
# File 'lib/effective_memberships.rb', line 60 def self.fee_types required = ['Applicant', 'Reinstatement', 'Prorated', 'Discount', 'Renewal', 'Late', 'Admin'] additional = Array(additional_fee_types) (required + additional).uniq.sort end |
.FeePayment ⇒ Object
35 36 37 |
# File 'lib/effective_memberships.rb', line 35 def self.FeePayment fee_payment_class_name&.constantize || Effective::FeePayment end |
.mailer_class ⇒ Object
56 57 58 |
# File 'lib/effective_memberships.rb', line 56 def self.mailer_class mailer&.constantize || Effective::MembershipsMailer end |
.MembershipCard ⇒ Object
39 40 41 |
# File 'lib/effective_memberships.rb', line 39 def self.MembershipCard membership_card_class_name&.constantize || Effective::MembershipCard end |
.MembershipDirectory ⇒ Object
43 44 45 |
# File 'lib/effective_memberships.rb', line 43 def self.MembershipDirectory membership_directory_class_name&.constantize || Effective::MembershipDirectory end |
.Organization ⇒ Object
23 24 25 |
# File 'lib/effective_memberships.rb', line 23 def self.Organization organization_class_name&.constantize || Effective::Organization end |