Substituted cyclopropyl compounds of the formula I: and pharmaceutically acceptable salts thereof are disclosed as useful for treating or preventing type 2 diabetes and similar conditions. The compounds are useful as agonists of the G-protein coupled receptor GPR-119. Pharmaceutical compositions and methods of treatment are also included.