changing signature based on Rails version