Delegate reg_no to registrant in presenter

#268
This commit is contained in:
Artur Beljajev 2017-03-07 19:30:26 +02:00
parent 18caeb796f
commit b702bcbd86
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,5 @@
class RegistrantPresenter
delegate :name, :ident, :email, :priv?, :street, :city, :id_code, to: :registrant
delegate :name, :ident, :email, :priv?, :street, :city, :id_code, :reg_no, to: :registrant
def initialize(registrant:, view:)
@registrant = registrant

View file

@ -12,6 +12,7 @@ RSpec.describe RegistrantPresenter do
street
city
id_code
reg_no
)
registrant_delegate_attributes.each do |attribute_name|