2012-12-03 04:10:45 +00:00
|
|
|
module Desktop::CoAuthorRelationsHelper
|
2012-12-05 05:49:53 +00:00
|
|
|
def reset_co_author_relation relation
|
|
|
|
co_author = CoAuthor.where(co_author_relations_id: relation)
|
|
|
|
co_author.map do |c|
|
|
|
|
co_author.update_attributes(co_author_relations_id: nil)
|
|
|
|
end
|
|
|
|
end
|
2012-12-03 04:10:45 +00:00
|
|
|
end
|