lib/outbox/define_inheritable_method.rb in outbox-0.1.2 vs lib/outbox/define_inheritable_method.rb in outbox-0.2.0
- old
+ new
@@ -12,14 +12,13 @@
end
protected
def get_inheritable_module(mod_name)
- if const_defined?(mod_name, _search_ancestors = false)
- mod = const_get(mod_name)
+ if const_defined?(mod_name, false)
+ const_get(mod_name)
else
- mod = const_set(mod_name, Module.new)
- include mod
+ include const_set(mod_name, Module.new)
end
end
end
end