WebEditor: sceleton

This commit is contained in:
Valeriy Sizov 2012-10-12 00:15:24 +03:00
parent 02c83f122a
commit e53b47b447
3 changed files with 30 additions and 2 deletions

20
lib/gitlab/file_editor.rb Normal file
View 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