Module: ThinkFeelDoDashboard::Concerns::Membership
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/think_feel_do_dashboard/concerns/membership.rb
Overview
addes necessary membership associations and validations
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#active? ⇒ Boolean
23 24 25 26 |
# File 'app/models/think_feel_do_dashboard/concerns/membership.rb', line 23 def active? (start_date.nil? || start_date <= Time.zone.today) && (end_date.nil? || end_date >= Time.zone.today) end |