Helper to add a number to quoted_post_numbers

This commit is contained in:
Navin 2013-05-23 18:07:45 +02:00
parent 3dfc034e8d
commit d7219a6fbc
1 changed files with 5 additions and 0 deletions

View File

@ -488,4 +488,9 @@ class Post < ActiveRecord::Base
args args
end end
def add_to_quoted_post_numbers(num)
return unless num.present?
self.quoted_post_numbers ||= []
self.quoted_post_numbers << num
end
end end