def add_module(mod)
      new_methods = mod.instance_methods.select {|e| e.to_s =~ /_view$/ }.map {|e| e.to_s}
      return if new_methods.empty?
      extend mod
      view_methods.replace(view_methods + new_methods).uniq!
      update_config(new_methods)
    end
def add_module(mod)
      new_methods = mod.instance_methods.select {|e| e.to_s =~ /_view$/ }.map {|e| e.to_s}
      return if new_methods.empty?
      extend mod
      view_methods.replace(view_methods + new_methods).uniq!
      update_config(new_methods)
    end
:stopdoc: