Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module BackOffice
- class PostSaleFilters
- attr_accessor :seller, :start_date, :end_date, :susep
- def end_date
- @end_date = @end_date.to_s.empty? ? Date.tomorrow : @end_date.to_date
- end
- def start_date
- @start_date = @start_date.to_s.empty? ? Date.today - 40.days : @start_date.to_date
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement