Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
3d3e40c2
Commit
3d3e40c2
authored
Mar 25, 2013
by
Andrew8xx8
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Personal snippet model added
parent
8f08fbfd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
app/models/personal_snippet.rb
app/models/personal_snippet.rb
+18
-0
spec/factories.rb
spec/factories.rb
+7
-0
No files found.
app/models/personal_snippet.rb
0 → 100644
View file @
3d3e40c2
# == Schema Information
#
# Table name: snippets
#
# id :integer not null, primary key
# title :string(255)
# content :text
# author_id :integer not null
# project_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
# file_name :string(255)
# expires_at :datetime
# type :string(255)
# private :boolean
class
PersonalSnippet
<
Snippet
end
spec/factories.rb
View file @
3d3e40c2
...
@@ -204,6 +204,13 @@ FactoryGirl.define do
...
@@ -204,6 +204,13 @@ FactoryGirl.define do
file_name
file_name
end
end
factory
:personal_snippet
do
author
title
content
file_name
end
factory
:snippet
do
factory
:snippet
do
author
author
title
title
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment