Skip to content

Commit

Permalink
Updates have referrals; do not yet use them.
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkie committed Mar 24, 2011
1 parent e2a26d4 commit 1ca86b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions models/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ class Update
validates_length_of :text, :minimum => 1, :maximum => 140

key :remote_url
key :referral_id

def referral
Update.first(:id => referral_id)
end

def url
feed.local ? "/updates/#{id}" : remote_url
Expand Down

0 comments on commit 1ca86b8

Please sign in to comment.