Fixed cookie store error on Rails 4 RC1