Fix Rails 3 compat
FIx rails 3 compat