mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Undef problematic Object methods
This commit is contained in:
parent
0f59d64ed5
commit
320596b75b
@ -12,6 +12,9 @@ require 'active_model/serializer/lint'
|
|||||||
# reified when subclassed to decorate a resource.
|
# reified when subclassed to decorate a resource.
|
||||||
module ActiveModel
|
module ActiveModel
|
||||||
class Serializer
|
class Serializer
|
||||||
|
undef_method :select, :display # These IO methods, which are mixed into Kernel,
|
||||||
|
# sometimes conflict with attribute names. We don't need these IO methods.
|
||||||
|
|
||||||
# @see #serializable_hash for more details on these valid keys.
|
# @see #serializable_hash for more details on these valid keys.
|
||||||
SERIALIZABLE_HASH_VALID_KEYS = [:only, :except, :methods, :include, :root].freeze
|
SERIALIZABLE_HASH_VALID_KEYS = [:only, :except, :methods, :include, :root].freeze
|
||||||
extend ActiveSupport::Autoload
|
extend ActiveSupport::Autoload
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user