Baby suddenly refusing pacifier

My baby is almost 3 months old and she's suddenly refusing the pacifier. She used to take naps just fine with it, but now she'll only nurse to sleep. She just cries and cries until I give her the boob. This makes things so difficult if I'm in public. All she wants to do is nurse every time she's upset. Help! :(