Method: Gitgo::Rest#update

Defined in:
lib/gitgo/rest.rb

#update(sha) ⇒ Object



50
51
52
53
54
55
# File 'lib/gitgo/rest.rb', line 50

def update(sha)
  return edit(sha) if preview?
  
  doc = model.update(sha, attrs).commit!
  redirect_to_doc(doc)
end