lib/megar/catalog/catalog_item.rb
# Returns a handle to the enclosing folder (if any)
Returns a handle to the enclosing folder (if any)
Returns a handle to the enclosing folder ( if any )
def parent_folder
    return unless session
    if parent_folder_id
      session.folders.find_by_id(parent_folder_id)
    else
      default_parent_folder
    end
  end
def parent_folder return unless session if parent_folder_id session . folders . find_by_id ( parent_folder_id ) else default_parent_folder end end
Returns a handle to the enclosing folder (if any)
Returns a handle to the enclosing folder ( if any )