moved activerecord extensions back to application controller