Skip to content

Commit

Permalink
Delegate reg_no to registrant in presenter
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Beljajev committed Mar 7, 2017
1 parent 18caeb7 commit b702bcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/registrant_presenter.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions spec/presenters/registrant_presenter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
street
city
id_code
reg_no
)

registrant_delegate_attributes.each do |attribute_name|
Expand Down

0 comments on commit b702bcb

Please sign in to comment.