Looks like it's getting overwritten by datamapper.  Changing the function name to see if it helps.