updates for rails 4