Rails 4 support

Flash now uses @discard internally instead of @used