lib/cms/object_extensions.rb
# Return any modules we +extend+
Return any modules we +extend+
Return any modules we + extend +
def safe_include(target, *modules)
    modules.each do |m|
      if !target.included_modules.include?(m)
        target.send :include, m
      end
    end
  end
def safe_include ( target , * modules ) modules . each do | m | if ! target . included_modules . include? ( m ) target . send :include , m end end end
Return any modules we +extend+
Return any modules we + extend +
target
modules