lib/truck/context.rb in truck-0.8.3 vs lib/truck/context.rb in truck-0.8.4

- old
+ new

@@ -23,9 +23,13 @@ def mod return nil unless parent and parent.const_defined? name parent.const_get name end + def context_for?(other_mod) + mod == other_mod or other_mod.included_modules.include? mod + end + def booted? mod ? true : false end def eager_load!