mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Add a new test to period
This commit is contained in:
parent
47be521a9d
commit
7cd2d1aec4
3 changed files with 32 additions and 1 deletions
|
@ -173,7 +173,7 @@ class Domain < ActiveRecord::Base
|
|||
|
||||
class << self
|
||||
def convert_period_to_time(period, unit)
|
||||
return period.to_i.days if unit == 'd'
|
||||
return period.to_i.days if unit == 'd'
|
||||
return period.to_i.months if unit == 'm'
|
||||
return period.to_i.years if unit == 'y'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue