Skip to content

Commit 320596b

Browse files
committed
Undef problematic Object methods
1 parent 0f59d64 commit 320596b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/active_model/serializer.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
# reified when subclassed to decorate a resource.
1313
module ActiveModel
1414
class Serializer
15+
undef_method :select, :display # These IO methods, which are mixed into Kernel,
16+
# sometimes conflict with attribute names. We don't need these IO methods.
17+
1518
# @see #serializable_hash for more details on these valid keys.
1619
SERIALIZABLE_HASH_VALID_KEYS = [:only, :except, :methods, :include, :root].freeze
1720
extend ActiveSupport::Autoload

0 commit comments

Comments
 (0)