Sha256: fecafceaba46d0294c0e61472ddb2d72da95898018603578833b412efe44b860

Contents?: true

Size: 1.99 KB

Versions: 28

Compression:

Stored size: 1.99 KB

Contents

# frozen_string_literal: true

module Blacklight
  module Deprecations
    module EngineConfiguration
      # rubocop:disable Style/RedundantSelf, Style/HashSyntax
      # @deprecated
      def bookmarks_http_method
        self.blacklight.bookmarks_http_method
      end
      deprecation_deprecate bookmarks_http_method: 'Moved to `blacklight.bookmarks_http_method`'

      # @deprecated
      def bookmarks_http_method=(val)
        self.blacklight.bookmarks_http_method = val
      end
      deprecation_deprecate :'bookmarks_http_method=' => 'Moved to `blacklight.bookmarks_http_method=`'

      # @deprecated
      def email_regexp
        self.blacklight.email_regexp
      end
      deprecation_deprecate email_regexp: 'Moved to `blacklight.email_regexp`'

      # @deprecated
      def email_regexp=(val)
        self.blacklight.email_regexp = val
      end
      deprecation_deprecate :'email_regexp=' => 'Moved to `blacklight.email_regexp=`'

      # @deprecated
      def facet_missing_param
        self.blacklight.facet_missing_param
      end
      deprecation_deprecate facet_missing_param: 'Moved to `blacklight.facet_missing_param`'

      # @deprecated
      def facet_missing_param=(val)
        self.blacklight.facet_missing_param = val
      end
      deprecation_deprecate :'facet_missing_param=' => 'Moved to `blacklight.facet_missing_param=`'

      # @deprecated
      def sms_mappings
        self.blacklight.sms_mappings
      end
      deprecation_deprecate sms_mappings: 'Moved to `blacklight.sms_mappings`'

      # @deprecated
      def sms_mappings=(val)
        self.blacklight.sms_mappings = val
      end
      deprecation_deprecate :'sms_mappings=' => 'Moved to `blacklight.sms_mappings=`'
      # rubocop:enable Style/RedundantSelf, Style/HashSyntax

      def self.deprecate_in(object)
        class << object
          extend Deprecation
          self.deprecation_horizon = 'blacklight 8.0'

          include Blacklight::Deprecations::EngineConfiguration
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
blacklight-7.40.0 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.39.0 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.38.0 lib/blacklight/deprecations/engine_configuration.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.37.0 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.36.2 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.36.1 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.36.0 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.35.0 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.34.0 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.33.1 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.33.0 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.32.0 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.31.0 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.30.0 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.29.0 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.28.0 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.27.1 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.27.0 lib/blacklight/deprecations/engine_configuration.rb
blacklight-7.26.1 lib/blacklight/deprecations/engine_configuration.rb