Class: Opro::Oauth::DocsController
- Inherits:
-
OproController
- Object
- ApplicationController
- OproController
- Opro::Oauth::DocsController
- Defined in:
- app/controllers/opro/oauth/docs_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
10 11 12 |
# File 'app/controllers/opro/oauth/docs_controller.rb', line 10 def index @protocol = protocol end |
#render_doc(name) ⇒ Object
19 20 21 22 23 24 |
# File 'app/controllers/opro/oauth/docs_controller.rb', line 19 def render_doc(name) str = read_file(name.to_s) str = parse_erb(str) str = parse_markdown(str) str.html_safe end |
#show ⇒ Object
14 15 16 17 |
# File 'app/controllers/opro/oauth/docs_controller.rb', line 14 def show @protocol = protocol @doc = params[:id] end |