File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ Gem::Specification.new do |s|
2323
2424 s . add_dependency 'activesupport' , '>= 7.0'
2525 s . add_dependency 'dry-types' , '>= 1.1'
26+ s . add_dependency 'dry-configurable'
2627 s . add_dependency 'mustermann-grape' , '~> 1.1.0'
2728 s . add_dependency 'rack' , '>= 2'
2829 s . add_dependency 'zeitwerk'
Original file line number Diff line number Diff line change 33require 'logger'
44require 'active_support'
55require 'active_support/concern'
6- require 'active_support/configurable'
76require 'active_support/version'
87require 'active_support/isolated_execution_state'
98require 'active_support/core_ext/array/conversions'
2827require 'active_support/inflector'
2928require 'active_support/ordered_options'
3029require 'active_support/notifications'
30+ require 'dry-configurable'
3131
3232require 'English'
3333require 'bigdecimal'
5757I18n . load_path << File . expand_path ( 'grape/locale/en.yml' , __dir__ )
5858
5959module Grape
60- include ActiveSupport ::Configurable
60+ extend Dry ::Configurable
61+
62+ setting :param_builder , default : :hash_with_indifferent_access
63+ setting :lint , default : false
6164
6265 HTTP_SUPPORTED_METHODS = [
6366 Rack ::GET ,
@@ -72,12 +75,6 @@ module Grape
7275 def self . deprecator
7376 @deprecator ||= ActiveSupport ::Deprecation . new ( '2.0' , 'Grape' )
7477 end
75-
76- configure do |config |
77- config . param_builder = :hash_with_indifferent_access
78- config . lint = false
79- config . compile_methods!
80- end
8178end
8279
8380# https://api.rubyonrails.org/classes/ActiveSupport/Deprecation.html
You can’t perform that action at this time.
0 commit comments