testing
Ruby
code posted
created at 02 Jul 21:25
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
def view_type_name ForecastSearch::VIEW_TYPES[self.view_type] end def probability_ids @probability_ids ||= [] end def status_level_ids @status_level_ids ||= [] end def product_ids @product_ids ||= [] end def duration=(value) @duration = value.to_i end def duration @duration ||= 3 end def end_date self.start_date.beginning_of_month >> self.duration end |
447 Bytes in 2 ms with coderay