mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
Hash: select entries by keys
This commit is contained in:
parent
c23075fa19
commit
c58b4fb2e9
11 changed files with 201 additions and 141 deletions
|
@ -63,7 +63,7 @@ class Nameserver < ApplicationRecord
|
|||
end
|
||||
|
||||
class << self
|
||||
def find_by_hash_params params
|
||||
def from_hash_params params
|
||||
params = params.with_indifferent_access
|
||||
rel = all
|
||||
rel = rel.where(hostname: params[:hostname])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue