WebEditor: sceleton
This commit is contained in:
parent
02c83f122a
commit
e53b47b447
3 changed files with 30 additions and 2 deletions
20
lib/gitlab/file_editor.rb
Normal file
20
lib/gitlab/file_editor.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
module Gitlab
|
||||
class FileEditor
|
||||
|
||||
attr_accessor :user, :project
|
||||
|
||||
def initialize(user, project)
|
||||
self.user = user
|
||||
self.project = project
|
||||
end
|
||||
|
||||
def can_edit?(path, last_commit)
|
||||
true
|
||||
end
|
||||
|
||||
def update(path, content)
|
||||
true
|
||||
end
|
||||
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue