added a logger in post
This commit is contained in:
parent
31a746db2f
commit
945a6ffbeb
1 changed files with 7 additions and 0 deletions
|
|
@ -87,6 +87,13 @@ class User
|
|||
end
|
||||
|
||||
group_ids = [group_ids.to_s] if group_ids.is_a? BSON::ObjectId
|
||||
|
||||
Rails.logger.debug("GROUP IDS FOR POST IS THIS:")
|
||||
Rails.logger.debug(group_ids.inspect)
|
||||
|
||||
|
||||
|
||||
|
||||
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