Method: Gitgo::Rest#redirect_to_doc
- Defined in:
- lib/gitgo/rest.rb
#redirect_to_doc(doc) ⇒ Object
82 83 84 85 |
# File 'lib/gitgo/rest.rb', line 82 def redirect_to_doc(doc) sha = doc.graph_head? ? doc.graph.head : "#{doc.graph.head}##{doc.sha}" redirect "/#{model.type}/#{sha}" end |