Sha256: 0b9638bf6a2ae027f1c7b5db4c221a59c12202b640101502c64d6388da557cff

Contents?: true

Size: 335 Bytes

Versions: 1

Compression:

Stored size: 335 Bytes

Contents

module Representable::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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
representable-1.2.0 lib/representable/deprecations.rb