Robert Speicher
b88da58cb6
Add `reference_pattern` to Referable models
2015-05-26 15:48:32 -04:00
Robert Speicher
8773f339a3
Minor model spec cleanups
...
Snippet model was missing project association
2015-05-26 15:48:30 -04:00
Robert Speicher
c0faf91ff2
Add `to_reference` for models that support references
...
Now there is a single source of information for which attribute a model
uses to be referenced, and its special character.
2015-05-26 15:48:30 -04:00
Douwe Maan
e739eb036d
Move participants method to shared Participable concern.
2015-04-24 12:30:36 +02:00
Douwe Maan
630e879066
Clean up code somewhat.
2015-04-17 11:03:33 +02:00
Douwe Maan
a9b04c4536
Fix Snippet#participants.
2015-04-15 18:59:01 +02:00
Douwe Maan
7633d60268
Include snippet author in recipients of snippet note notification.
2015-04-15 17:57:31 +02:00
Douwe Maan
dfe0f9eedf
Use more specific regexes.
2015-03-27 11:09:29 +01:00
Stan Hu
7e204cf389
Added comment notification events to HipChat and Slack services.
...
Supports four different event types all bundled under the "note" event type:
- comments on a commit
- comments on an issue
- comments on a merge request
- comments on a code snippet
2015-03-06 06:54:00 -08:00
Dmitriy Zaporozhets
62ed1c537e
Explicitly define ordering in models using default_scope
2015-02-05 14:20:55 -08:00
Dmitriy Zaporozhets
cc39bca3fa
Rubocop: Style/AlignHash enabled
2015-02-02 21:15:44 -08:00
Dmitriy Zaporozhets
118bd7178b
Sanitize snippet file name in raw headers
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-12-12 13:28:48 +02:00
Dmitriy Zaporozhets
f28a12a559
Add strict validation to snippet file names
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-12-12 13:15:42 +02:00
Valery Sizov
82c938ad75
annotate
2014-10-09 18:22:20 +03:00
Valery Sizov
47f539f5a6
Snippets: public/internal/private
2014-10-09 17:09:53 +03:00
Valery Sizov
fd8d1d9b62
Snippets: rename public to internal
2014-10-07 11:54:00 +03:00
Charles Bushong
4cca1b050a
Adding in snippet search functionality
...
http://feedback.gitlab.com/forums/176466-general/suggestions/5529795-search-though-snippets
2014-08-29 15:32:07 -04:00
Dmitriy Zaporozhets
2acde87e0d
Project hook, milestone, snippet strong params
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-26 18:51:11 +03:00
Dmitriy Zaporozhets
98ba075c32
User model to strong params. Comment other attr_accessible to let tests run
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-26 15:11:45 +03:00
Marin Jankovski
18b1f171bd
Rename snippets scopes to plural names.
2014-06-04 08:37:19 +02:00
Marin Jankovski
90c2e0d971
Replace now forbidden keywords public and private for snippets scope
2014-06-03 11:37:23 +02:00
Dmitriy Zaporozhets
36f861f1b1
Re-annotate models
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-04-09 15:05:03 +03:00
Dmitriy Zaporozhets
de855e2420
Default value for Snippet#private
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-03-17 15:50:16 +02:00
Dmitriy Zaporozhets
8dd37afe34
Reannotate
2013-08-21 12:34:02 +03:00
Dmitriy Zaporozhets
6e35aceff2
Annotated
2013-06-19 15:40:33 +03:00
Andrew8xx8
3e695acfa2
Notes fixed
2013-03-25 15:58:09 +04:00
Andrew8xx8
3b6228dc27
It's better to use STI instead
2013-03-25 00:37:14 +04:00
Andrew8xx8
8adf9c7956
Additional scopes added
2013-03-25 00:23:12 +04:00
Andrew8xx8
770f262a6a
Private added to attr_accessible
2013-03-25 00:22:45 +04:00
Andrew8xx8
bc7c5f87bb
Project snippet moved to separate model
2013-03-24 19:26:49 +04:00
Andrew8xx8
b5db541338
All scopes must be in lambdas
2013-02-12 11:16:45 +04:00
Valeriy Sizov
69ec189ad2
remove length of snippet content
2013-01-22 17:10:00 +02:00
Dmitriy Zaporozhets
190e483fb4
Rework of milestones
2012-12-14 08:34:05 +03:00
Dmitriy Zaporozhets
95c23b2f97
Annotated. schema updated
2012-11-19 21:24:05 +03:00
Dmitriy Zaporozhets
41e53eb980
Annotated
2012-10-09 11:14:17 +03:00
Andrey Kumanyaev
df7c52489a
simple refactoring
2012-10-09 04:10:04 +04:00
Nihad Abbasov
841e4fbd08
cosmetical cleanup of models
2012-09-27 02:05:53 -07:00
Nihad Abbasov
2a4359a572
annotate models
2012-09-27 02:05:53 -07:00
Nihad Abbasov
83efcabc82
set activerecord whitelist_attributes to true
2012-09-26 11:18:35 -07:00
Robert Speicher
7754189187
Fully embrace Ruby 1.9 hash syntax
...
Didn't bother with files in db/, config/, or features/
2012-08-10 18:25:15 -04:00
randx
6abc649590
Reannotated
2012-06-26 21:23:09 +03:00
Dmitriy Zaporozhets
9c76bd9540
Project linguist integration
2012-04-21 01:26:22 +03:00
Dmitriy Zaporozhets
10df55e11d
Added missing dependent for notes assoc
2011-12-18 12:10:20 +02:00
Dmitriy Zaporozhets
0712e78597
Snippet restyle
2011-12-15 08:12:24 +02:00
Dmitriy Zaporozhets
23a1ba7362
Fix different styles/button positions
2011-12-08 01:35:57 +02:00
Nihad Abbasov
b6cdd1c819
test expired snippets
2011-10-28 00:25:50 +05:00
Nihad Abbasov
325b84545c
don't count expired snippets
2011-10-27 13:12:12 +05:00
Nihad Abbasov
000c032482
display recent snippets at top
2011-10-27 12:14:50 +05:00
Nihad Abbasov
8e1e17763f
implement snippets lifetime
2011-10-27 11:46:21 +05:00
Nihad Abbasov
d62200cad4
clean-up code
...
* Remove trailing whitespace
* Converts hard-tabs into two-space soft-tabs
* Remove consecutive blank lines
2011-10-26 18:46:25 +05:00