moved method_override code into class method called intercept_method_override so that grape can call it internally