app/models/lightweight_activity.rb
# Just a way of getting self.visible_pages with the embeddables eager-loaded
Just a way of getting self.visible_pages with the embeddables eager-loaded
Just a way of getting self . visible_pages with the embeddables eager - loaded
def visible_pages_with_embeddables
    InteractivePage
      .includes(:page_items => :embeddable)
      .where(:lightweight_activity_id => self.id, :is_hidden => false)
      .order(:position)
  end
def visible_pages_with_embeddables InteractivePage . includes ( :page_items => :embeddable ) . where ( :lightweight_activity_id => self . id , :is_hidden => false ) . order ( :position ) end
Just a way of getting self.visible_pages with the embeddables eager-loaded
Just a way of getting self . visible_pages with the embeddables eager - loaded