# File lib/data_mapper/constraints/adapters/extension.rb, line 15 def include_constraint_api(const_name) require constraint_extensions(const_name) if Constraints::Adapters.const_defined?(const_name) adapter = const_get(const_name) constraint_module = Constraints::Adapters.const_get(const_name) adapter.class_eval { include constraint_module } end rescue LoadError # Silently ignore the fact that no adapter extensions could be required # This means that the adapter in use doesn't support constraints end