Skip to content

Commit 43bdc8e

Browse files
authored
Merge pull request #1 from coprl/f/upgrade-dry-dependencies
feat: Ensure dry configurable is >=0.13
2 parents 1d2dce0 + bd3b522 commit 43bdc8e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cacheable_presenter_plugin.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
1717
end
1818
spec.require_paths = ['lib']
1919

20+
spec.add_dependency "dry-configurable", ">= 0.13"
2021
spec.add_development_dependency "bundler", "~> 2.0"
2122
spec.add_development_dependency 'rake', "~> 10.0"
2223
end

lib/coprl/presenters/plugins/cacheable/cacheable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module Cacheable
99
class Settings
1010
extend Dry::Configurable
1111
# A cache needs to respond to fetch(key, &block) and exist?(key) or has_key?(key)
12-
setting :cache, defined?(::Rails) ? ::Rails.cache : nil
12+
setting :cache, default: defined?(::Rails) ? ::Rails.cache : nil
1313
end
1414

1515
module DSLComponents

0 commit comments

Comments
 (0)