lib/pageflow/revision_component.rb
def from_perma_ids(revision, perma_ids)
        return [] if revision.blank? || perma_ids.blank?

        perma_ids.map do |perma_id|
          find_by_revision_id_and_perma_id(revision.id, perma_id)
        end.compact
      end
# Recommended way to create revision components. Uses an
# advisory lock to ensure concurrently created records are not
# assigned the same perma id.
Recommended way to create revision components. Uses an
advisory lock to ensure concurrently created records are not
assigned the same perma id.
Recommended way to create revision components . Uses an advisory lock to ensure concurrently created records are not assigned the same perma id .
def from_perma_ids(revision, perma_ids)
        return [] if revision.blank? || perma_ids.blank?
        perma_ids.map do |perma_id|
          find_by_revision_id_and_perma_id(revision.id, perma_id)
        end.compact
      end
def from_perma_ids ( revision , perma_ids ) return [ ] if revision . blank? || perma_ids . blank? perma_ids . map do | perma_id | find_by_revision_id_and_perma_id ( revision . id , perma_id ) end . compact end
Recommended way to create revision components.
Recommended way to create revision components .
revision
perma_ids