mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 18:59:38 +02:00
Refactor
This commit is contained in:
parent
73cb8c604d
commit
47be521a9d
1 changed files with 3 additions and 4 deletions
|
@ -173,10 +173,9 @@ class Domain < ActiveRecord::Base
|
|||
|
||||
class << self
|
||||
def convert_period_to_time(period, unit)
|
||||
p = period.to_i.days if unit == 'd'
|
||||
p = period.to_i.months if unit == 'm'
|
||||
p = period.to_i.years if unit == 'y'
|
||||
p
|
||||
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
|
||||
|
||||
def parse_contacts_from_frame(parsed_frame)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue