lib/loquor/interactors.rb in loquor-0.2.0 vs lib/loquor/interactors.rb in loquor-0.3.0
- old
+ new
@@ -15,10 +15,11 @@
klass_name = name_parts.pop
# Create base modules
const = Loquor
name_parts.each do |name_part|
- const.const_set name_part, Module unless const.const_defined?(name_part)
+ const.const_set(name_part, Module.new) unless const.const_defined?(name_part)
+ const = const.const_get(name_part)
end
# Define the actual klass at the right point
const.const_set klass_name, klass
end