Add attr_accessor for original_number #5

Merged
merged 1 commit into from Mar 9, 2012

Conversation

Projects
None yet
2 participants
Contributor

jordoh commented Mar 9, 2012

Hi, this just adds an accessor for :original_number, so you can do something like:

TrackingNumber.search(some_text).each do |tracking_number|
  some_text.gsub! /#{tracking_number.original_number}/, tracking_link(tracking_number.tracking_number)
end

@jkeen jkeen added a commit that referenced this pull request Mar 9, 2012

@jkeen jkeen Merge pull request #5 from jordoh/original_number_accessor
Add attr_accessor for original_number
85f94f0

@jkeen jkeen merged commit 85f94f0 into jkeen:master Mar 9, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment