Sha256: e834533de07d7be9c41600dd11c08bd2c5fb32bef80ab1e9e3e09d8e051d66b7

Contents?: true

Size: 412 Bytes

Versions: 4

Compression:

Stored size: 412 Bytes

Contents

GrapeResource.setup do |config|
  # Directory to create endpoint
  config.directory = "controllers/API/v1/"

  # Class name prefix
  config.class_name_prefix = "API::V1"

  # Entry point routes
  config.entry_point_routes = "# Routes entry point"

  # Formatter
  config.success_formatter = "formatter :json, ::API::SuccessFormatter"
  config.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/generators/templates/initializer.rb
grape_resource-0.1.10 lib/generators/templates/initializer.rb
grape_resource-0.1.6 lib/generators/templates/initializer.rb
grape_resource-0.1.5 lib/generators/templates/initializer.rb