Sha256: 42f53746ffa7c4df18fdc9159dc4917adbeb0bea8fdda4bbf1257df78f7081d5
Contents?: true
Size: 595 Bytes
Versions: 1
Compression:
Stored size: 595 Bytes
Contents
module Restapi class RestapisController < ActionController::Base layout false def index respond_to do |format| format.json { render :json => Restapi.to_json(params[:resource], params[:method]) } format.html end end protected helper_method :restapi_javascript_src def restapi_javascript_src(file) "#{Restapi.configuration.doc_base_url}/javascripts/#{file}" end helper_method :restapi_stylesheet_src def restapi_stylesheet_src(file) "#{Restapi.configuration.doc_base_url}/stylesheets/#{file}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restapi-0.0.2 | app/controllers/restapi/restapis_controller.rb |