Class: PersonalSnippet

Inherits:
Snippet
  • Object
show all
Defined in:
app/models/personal_snippet.rb

Overview

Schema Information

Table name: snippets

id               :integer          not null, primary key
title            :string
content          :text
author_id        :integer          not null
project_id       :integer
created_at       :datetime
updated_at       :datetime
file_name        :string
type             :string
visibility_level :integer          default(0), not null

Constant Summary

Constants included from Gitlab::VisibilityLevel

Gitlab::VisibilityLevel::INTERNAL, Gitlab::VisibilityLevel::PRIVATE, Gitlab::VisibilityLevel::PUBLIC

Method Summary

Methods inherited from Snippet

accessible_to, content_types, #data, #hook_attrs, link_reference_pattern, #mode, #name, #no_highlighting?, reference_pattern, reference_prefix, #sanitized_file_name, search, search_code, #size, #to_reference, #visibility_level_field

Methods included from Referable

#reference_link_text, #to_reference

Methods included from Participable

#participants

Methods included from Gitlab::VisibilityLevel

allowed_for?, allowed_level?, #internal?, level_name, non_restricted_level?, options, #private?, #public?, valid_level?, values

Methods included from Gitlab::CurrentSettings

#current_application_settings, #fake_application_settings