Allows dynamic attributes in Mongoid 4 (due to this no longer allowed by default)
Adds test for writing your own attributes on GridFS#put

Ensures consistency between Mongoid 3.x and 4.x
Pegs Rails dependency at v4.0.0

Pegs Rails dependency at v4.0.0 as master is moving to 4.1.x and
conflicts with Mongoid master requirements
Pegs Rails dependency at "4-0-stable"
Remove references to Moped::BSON::Binary

Mongoid master (4) now uses bson-ruby and thus Moped::BSON::Binary
has been removed
Revert/improve last commit to provide backward compatibility
fixbug Moped::BSON and BSON
Fixes auto merge issues, use of defined? and how #binary_for is defined
Merge pull request #26 from philostler/mongoid-4

Allow dynamic write attributes in Mongoid 4
Mongoid has refactored session options

mongoid/mongoid#cc7a0e7
Merge remote-tracking branch 'guat/master'