Mongoid 4 compatibility fix

As you can see Mongoid 4 and Mongoid master now wants a Hash for setting attributes via the set atomic method :
https://github.com/mongoid/mongoid/blob/master/lib/mongoid/persistable/settable.rb#L22

So I've made this patch that sends the correct signature to Mongoid set method depending on the major version.

Thanks.