Sha256: dee200920348f4583b94be41ccdfafad138fb6ec13673aa1f1625ce6e8f57fdc

Contents?: true

Size: 277 Bytes

Versions: 4

Compression:

Stored size: 277 Bytes

Contents

class HelpersController < ApplicationController
  def show_schema_path
    path = json_schema_rails.schema_path(params[:schema_name])
    render text: path
  end

  def show_schema_url
    url = json_schema_rails.schema_url(params[:schema_name])
    render text: url
  end
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
json_schema_rails-0.2.1 spec/dummy_apps/rails3/app/controllers/helpers_controller.rb
json_schema_rails-0.2.1 spec/dummy_apps/rails4/app/controllers/helpers_controller.rb
json_schema_rails-0.2.0 spec/dummy_apps/rails3/app/controllers/helpers_controller.rb
json_schema_rails-0.2.0 spec/dummy_apps/rails4/app/controllers/helpers_controller.rb