Sha256: 8b613fd062d5b27ae92ccdd16c2fcd774d23710f4664f955b3e8396907fd7cdf

Contents?: true

Size: 496 Bytes

Versions: 4

Compression:

Stored size: 496 Bytes

Contents

require "grape_resource/version"
require "grape_resource/configuration"

module GrapeResource
  class Error < StandardError; end
  
  extend GrapeResource::Configuration

  define_setting :directory, "controllers/API/v1/"
  define_setting :class_name_prefix, "API::V1"
  define_setting :entry_point_routes, "# Routes entry point"
  define_setting :success_formatter, "formatter :json, ::API::SuccessFormatter"
  define_setting :error_formatter, "error_formatter :json, ::API::ErrorFormatter"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grape_resource-0.1.11 lib/grape_resource.rb
grape_resource-0.1.10 lib/grape_resource.rb
grape_resource-0.1.6 lib/grape_resource.rb
grape_resource-0.1.5 lib/grape_resource.rb