entry is nil inside rake tasks or rails console