Sha256: 4130aec62b0a928ba30bbc3082403ba91ae92eb9594b5762c51feacd4e04a099

Contents?: true

Size: 547 Bytes

Versions: 2

Compression:

Stored size: 547 Bytes

Contents

PicoApi.configure do |config|
  ## the base namespace of your app
  config.namespace = "<%= @project_name_camelcased %>"

  ## the root directory where all the business logic resides
  config.lib_path = "lib/<%= @project_name_snakecased %>"

  config.logger = Logger.new(STDOUT) if ENV['LOG_TO_STDOUT'] == 'true'

  ## Add your custom exception mappings -> { exception: status_code }.
  # PicoApi serializes runtime exceptions to json-api specification error objects
  config.errors_map = {
    StandardError: :unprocessable_entity
  }.freeze
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pico_api-0.0.4 lib/pico_api/generators/templates/config/configuration.erb
pico_api-0.0.3 lib/pico_api/generators/templates/config/configuration.erb