lib/sync_machine.rb in sync_machine-0.3.0 vs lib/sync_machine.rb in sync_machine-0.4.0
- old
+ new
@@ -26,10 +26,10 @@
def self.extended(base)
base.mattr_accessor :subject_sym
end
def self.sync_module(child_const)
- child_const.name.split(/::/).first.constantize
+ child_const.name.split(/::/)[0..-2].join('::').constantize
end
def subject(subject_sym)
self.subject_sym = subject_sym
end