Module: Representable::Deprecations

Defined in:
lib/representable/deprecations.rb

Instance Method Summary collapse

Instance Method Details

#skip_excluded_property?(binding, options) ⇒ Boolean

TODO: remove with 1.3.

Returns:

  • (Boolean)


3
4
5
6
7
8
9
# File 'lib/representable/deprecations.rb', line 3

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