Skip to content

Commit

Permalink
feat: changed configuration property name from 'enable_badge_resource…
Browse files Browse the repository at this point in the history
…s' to 'enable_public_badge_access'
  • Loading branch information
bethesque committed Sep 17, 2017
1 parent 69ab586 commit 83540e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/pact_broker/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ class Configuration
attr_accessor :enable_public_badge_access, :shields_io_base_url
attr_writer :logger

alias_method :enable_badge_resources=, :enable_public_badge_access=

def initialize
@before_resource_hook = ->(resource){}
@after_resource_hook = ->(resource){}
Expand Down Expand Up @@ -110,7 +108,7 @@ def after_resource &block

def enable_badge_resources= enable_badge_resources
puts "Pact Broker configuration property `enable_badge_resources` is deprecated. Please use `enable_public_badge_access`"
enable_public_badge_access= enable_badge_resources
self.enable_public_badge_access = enable_badge_resources
end

def save_to_database
Expand Down

0 comments on commit 83540e5

Please sign in to comment.