Sha256: 32f66e940a62236f749717bd55a56fe5d36b78a090e0770b2db8545b8b83f1e2

Contents?: true

Size: 363 Bytes

Versions: 9

Compression:

Stored size: 363 Bytes

Contents

module Representable
  module Deprecations
    def skip_excluded_property?(binding, options) # TODO: remove with 1.3.
      if options[:except]
        options[:exclude] = options[:except]
        warn "The :except option is deprecated and will be removed in 1.3. Please use :exclude."
      end # i wanted a one-liner but failed :)
      super
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
representable-1.2.9 lib/representable/deprecations.rb
representable-1.2.8 lib/representable/deprecations.rb
representable-1.2.7 lib/representable/deprecations.rb
representable-1.2.6 lib/representable/deprecations.rb
representable-1.2.5 lib/representable/deprecations.rb
representable-1.2.4 lib/representable/deprecations.rb
representable-1.2.3 lib/representable/deprecations.rb
representable-1.2.2 lib/representable/deprecations.rb
representable-1.2.1 lib/representable/deprecations.rb