Skip to content

Commit

Permalink
Add workaround for MRI < 2.4
Browse files Browse the repository at this point in the history
There should be an issue on bugs.ruby-lang.org
  • Loading branch information
flash-gordon committed May 25, 2017
1 parent 14d18f2 commit abdb106
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/dry/core/class_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def create_named
namespace.module_eval do
remove_const(name)
const_set(name, klass)

const_get(name).name if RUBY_VERSION < '2.4'

remove_const(name)
const_set(name, base)
end
Expand Down

0 comments on commit abdb106

Please sign in to comment.