Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix visibility of Extensions.extended

  • Loading branch information...
commit 76acc2d20f7568dffb9329a3f82d0e15d1c29e3f 1 parent 023fdee
@solnic authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/virtus/extensions.rb
View
2  lib/virtus/extensions.rb
@@ -5,6 +5,7 @@ module Extensions
WRITER_METHOD_REGEXP = /=\z/.freeze
INVALID_WRITER_METHODS = %w[ == != === []= attributes= ].to_set.freeze
+ # @api private
def self.extended(object)
object.extend(InstanceMethods)
object.instance_eval do
@@ -12,6 +13,7 @@ def self.extended(object)
extend @virtus_attributes_accessor_module
end
end
+ private_class_method :extended
# Defines an attribute on an object's class
#
Please sign in to comment.
Something went wrong with that request. Please try again.