Skip to content

Commit

Permalink
Add Order#to_s
Browse files Browse the repository at this point in the history
  • Loading branch information
c-lliope committed Apr 13, 2015
1 parent e2eb3a0 commit 10188e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ class Order < ActiveRecord::Base
validates :address_city, presence: true
validates :address_state, presence: true
validates :address_zip, presence: true

def to_s
id
end
end

0 comments on commit 10188e4

Please sign in to comment.