orbit-basic/app/helpers/desktop/co_author_relations_helper.rb

9 lines
251 B
Ruby
Raw Normal View History

2012-12-03 04:10:45 +00:00
module Desktop::CoAuthorRelationsHelper
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