Helper to add a number to quoted_post_numbers
This commit is contained in:
parent
3dfc034e8d
commit
d7219a6fbc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue