mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
parent
18caeb796f
commit
b702bcbd86
2 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
class RegistrantPresenter
|
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:)
|
def initialize(registrant:, view:)
|
||||||
@registrant = registrant
|
@registrant = registrant
|
||||||
|
|
|
@ -12,6 +12,7 @@ RSpec.describe RegistrantPresenter do
|
||||||
street
|
street
|
||||||
city
|
city
|
||||||
id_code
|
id_code
|
||||||
|
reg_no
|
||||||
)
|
)
|
||||||
|
|
||||||
registrant_delegate_attributes.each do |attribute_name|
|
registrant_delegate_attributes.each do |attribute_name|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue