group_ids to string in post
This commit is contained in:
parent
d80ba7ca58
commit
31a746db2f
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ class User
|
|||
group_ids = options.delete(:to)
|
||||
end
|
||||
|
||||
group_ids = [group_ids] if group_ids.is_a? BSON::ObjectId
|
||||
group_ids = [group_ids.to_s] if group_ids.is_a? BSON::ObjectId
|
||||
raise ArgumentError.new("You must post to someone.") if group_ids.nil? || group_ids.empty?
|
||||
|
||||
post = build_post(class_name, options)
|
||||
|
|
|
|||
Loading…
Reference in a new issue