diff --git a/app/models/dotation.rb b/app/models/dotation.rb index 3e72351..ef7492e 100644 --- a/app/models/dotation.rb +++ b/app/models/dotation.rb @@ -113,6 +113,8 @@ class Dotation < ApplicationRecord # == Instance Methods ===================================================== def start_date_ret + return if start_date.blank? + if start_date_quarter.eql?(true) Dotation.display_as_quarter(start_date) else @@ -121,6 +123,8 @@ class Dotation < ApplicationRecord end def end_date_ret + return if end_date.blank? + if end_date_quarter.eql?(true) Dotation.display_as_quarter(end_date) else @@ -129,6 +133,8 @@ class Dotation < ApplicationRecord end def ann_date_ret + return if announcement_date.blank? + if ann_date_quarter.eql?(true) Dotation.display_as_quarter(announcement_date) else