Method: Gitgo::Rest#show

Defined in:
lib/gitgo/rest.rb

#show(sha) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/gitgo/rest.rb', line 57

def show(sha)
  unless doc = model.read(sha)
    raise "unknown #{model.type}: #{sha.inspect}"
  end
  
  new_doc = doc.inherit(attrs)
  # new_doc.normalize!
  
  erb :show, :locals => {
    :doc => doc,
    :new_doc => new_doc,
    :active_sha => session_head
  }
end