class DogBiscuits::PublishedWork
Public Instance Methods
combine_dates()
click to toggle source
Create single date field from all dates.
# File lib/dog_biscuits/models/works/published_work.rb, line 28 def combine_dates tmpdate = date tmpdate << date_published tmpdate << date_available tmpdate << date_accepted tmpdate << date_submitted tmpdate << date_created self.date = tmpdate end
published_work?()
click to toggle source
before_save :combine_dates
# File lib/dog_biscuits/models/works/published_work.rb, line 23 def published_work? true end