class DogBiscuits::Thesis

Public Instance Methods

combine_dates() click to toggle source

Create single date field from all dates.

# File lib/dog_biscuits/models/works/thesis.rb, line 27
def combine_dates
  tmpdate = date
  tmpdate << date_of_award
  tmpdate << date_created
  self.date = tmpdate
end
thesis?() click to toggle source

before_save :combine_dates

# File lib/dog_biscuits/models/works/thesis.rb, line 22
def thesis?
  true
end