Fix typo in administered_domains method name

This commit is contained in:
Maciej Szlosarczyk 2018-08-27 09:12:47 +03:00
parent fc2a4eaa9b
commit d725960403
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
3 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ class RegistrantUser < User
# In Rails 5, can be replaced with a much simpler `or` query method and the raw SQL parts can be
# removed.
# https://guides.rubyonrails.org/active_record_querying.html#or-conditions
def administrated_domains
def administered_domains
domains_where_is_administrative_contact = begin
Domain.joins(:domain_contacts)
.where(domain_contacts: { contact_id: contacts, type: [AdminDomainContact] })