Sha256: 28c79bc886b97d45e5cafe6fa9936a12d55b8da27ed0fcef8244f4d64acd58d3
Contents?: true
Size: 345 Bytes
Versions: 23
Compression:
Stored size: 345 Bytes
Contents
# Create followers from comment authors Run the following script to make all comment authors follow the commented resource: ```ruby Decidim::Comments::Comment.includes(:author, :root_commentable).find_each do |comment| begin Decidim::Follow.create!(followable: comment.root_commentable, user: comment.author) rescue end end; p 1 ```
Version data entries
23 entries across 23 versions & 1 rubygems