Skip to content

Commit

Permalink
Replace Equalizer with Virtus::Equalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
solnic committed Jun 7, 2021
1 parent bff73b0 commit 671c770
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion lib/virtus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ def self.warn(msg)
end # module Virtus

require 'descendants_tracker'
require 'equalizer'
require 'axiom-types'
require 'coercible'

Expand Down
2 changes: 1 addition & 1 deletion lib/virtus/extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def attribute(name, type = nil, options = {})
def values(&block)
private :attributes= if instance_methods.include?(:attributes=)
yield
include(::Equalizer.new(*attribute_set.map(&:name)))
include(Equalizer.new(name, attribute_set.map(&:name)))
end

# The list of writer methods that can be mass-assigned to in #attributes=
Expand Down
1 change: 0 additions & 1 deletion virtus.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Gem::Specification.new do |gem|
gem.extra_rdoc_files = %w[LICENSE README.md TODO.md]

gem.add_dependency('descendants_tracker', '~> 0.0', '>= 0.0.3')
gem.add_dependency('equalizer', '~> 0.0', '>= 0.0.9')
gem.add_dependency('coercible', '~> 1.0')
gem.add_dependency('axiom-types', '~> 0.1')

Expand Down

0 comments on commit 671c770

Please sign in to comment.