Skip to content

Commit

Permalink
[Fix] - Single attribute with default value breaking on Ruby 3 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvicenzo committed Jan 24, 2022
1 parent 46a5aa4 commit 283dada
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/ez_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ def initialize(#{init_args})
end

# Defines a single keyword argument for a class initializer
define_method :attribute do |name|
attributes(name)
end
alias_method :attribute, :attributes
end

mod
Expand Down

0 comments on commit 283dada

Please sign in to comment.