Method: Gitgo::Rest#edit
- Defined in:
- lib/gitgo/rest.rb
#edit(sha) ⇒ Object
41 42 43 44 45 46 47 48 |
# File 'lib/gitgo/rest.rb', line 41 def edit(sha) unless doc = model.read(sha) raise "unknown #{model.type}: #{sha.inspect}" end doc.merge!(attrs) erb :edit, :locals => {:doc => doc} end |