OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/models/hourly_rate.rb

18 lines
249 B

class HourlyRate < Rate
belongs_to :user
belongs_to :project
def self.default(params = {})
DefaultHourlyRate.new(params)
end
end
class DefaultHourlyRate < HourlyRate
def rate
0.0
end
def valid_from
Date.new
end
end