Setting dirty flag when assigning flat dynamic attributes.
New unit tests for dirty dynamic attributes monkeypatch.
An extra test case for dynamic attribute setting marked as dirty. Aknowledging the solution is a hack.
Merge pull request #8 from pnabutovsky/rails_4.0_upgrade

Setting dirty flag for top-level dynamic attributes