Sha256: 9f7209d31d551c6bebfacd3f6055e4dd9369f9a6bef13625b5ee894fb4ebfbd8

Contents?: true

Size: 266 Bytes

Versions: 1

Compression:

Stored size: 266 Bytes

Contents

# frozen_string_literal: true
module Motorhead
  include ActiveSupport::Configurable

  configure do |config|
    config.on_error = ->(err) do
      if ['development', 'test'].include? Rails.env
        raise err
      else
        p err
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
motorhead-0.5.0 lib/motorhead/config.rb