Skip to content

Commit

Permalink
fixed law of demeter problem for courier notification
Browse files Browse the repository at this point in the history
  • Loading branch information
chiramiso committed Jan 22, 2015
1 parent 7063ef1 commit 6ad03c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/business_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class BusinessTransaction < ActiveRecord::Base
:active?, :transport_time,
to: :article, prefix: true
delegate :email, :nickname, to: :buyer, prefix: true
delegate :nickname, to: :seller, prefix: true
delegate :nickname, :phone, :mobile, to: :seller, prefix: true
delegate :title, :first_name, :last_name, :address_line_1, :address_line_2, :company_name,
:zip, :city, :country, to: :transport_address, prefix: true
delegate :title, :first_name, :last_name, :address_line_1, :address_line_2, :company_name,
Expand Down
4 changes: 2 additions & 2 deletions app/views/cart_mailer/courier_notification.text.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Abholadresse:
<%= @business_transaction.seller.standard_address_address_line_1 %>
<%= @business_transaction.seller.standard_address_address_line_2 if @business_transaction.seller.standard_address_address_line_2.present? %>
<%= @business_transaction.seller.standard_address_zip + ' ' + @business_transaction.seller.standard_address_city %>
<%= @business_transaction.seller.phone if @business_transaction.seller.phone.present? %>
<%= @business_transaction.seller.mobile if @business_transaction.seller.mobile.present? %>
<%= @business_transaction.seller_phone if @business_transaction.seller_phone.present? %>
<%= @business_transaction.seller_mobile if @business_transaction.seller_mobile.present? %>

--------------------------------------------------

Expand Down

0 comments on commit 6ad03c8

Please sign in to comment.