Rename Contact::address_processing to address_processing?

#251
This commit is contained in:
Artur Beljajev 2016-12-12 04:36:28 +02:00
parent 5af4c585d4
commit 5e1c43f7cc
5 changed files with 7 additions and 7 deletions

View file

@ -17,7 +17,7 @@ module Repp
if params[:details] == 'true'
contacts = current_user.registrar.contacts.limit(limit).offset(offset)
unless Contact.address_processing
unless Contact.address_processing?
attributes = Contact.attribute_names - Contact.address_attribute_names
contacts = contacts.select(attributes)
end

View file

@ -22,7 +22,7 @@ class Epp::ContactsController < EppController
@contact.add_legal_file_to_new(frame)
@response_code = if Contact.address_processing
@response_code = if Contact.address_processing?
1000
else
frame.css('postalInfo addr').size != 0 ? 1100 : 1000

View file

@ -258,7 +258,7 @@ class Contact < ActiveRecord::Base
pluck(:email)
end
def address_processing
def address_processing?
Setting.address_processing
end