Merge pull request #11455 from antonio/fix_enable_extension_not_being_defined

Define enable_extension method to prevent undefined method error