mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
9 lines
224 B
Ruby
9 lines
224 B
Ruby
class ReservedDomain < ActiveRecord::Base
|
|
include Versions # version/reserved_domain_version.rb
|
|
|
|
class << self
|
|
def pw_for(domain_name)
|
|
select("names -> '#{domain_name}' AS pw").first.try(:pw)
|
|
end
|
|
end
|
|
end
|