Commit Graph

11 Commits

Author SHA1 Message Date
Patrick Blesi f7a07580a9 add quiet flag to seed output 2014-12-14 23:17:10 -06:00
Patrick Blesi 6cac392486 fix seed_once! functionality 2014-12-14 12:23:13 -06:00
Patrick Blesi 3a32792a1c Added quiet flag, sorting of seed files 2014-06-04 00:31:58 -05:00
Patrick Blesi 09b470a81d Use mongoid write_attribute method instead of attribute= method in order to support mongoid dynamic field assignment 2014-03-17 21:04:08 -05:00
Heitor Salazar Baldelli 0fc9735137 Send object a message instead of directly setting the attribute
This line will lead to fail when you have nested attributes in a document.

Since the access to the property is made directly (throgh the #[] method) mongoid will store the association_attributes as a property of the document, instead of triggering the nested attributes generated method.

This little patch fixes this issue.
2013-08-01 16:21:40 -03:00
John Bintz 2069b9f1e0 add some tests and the ability to create objects via hashes 2013-03-27 10:41:04 -04:00
John Bintz f17f299abe add ability to seed through code 2013-02-24 16:39:36 -05:00
John Bintz dd5b0ea9e1 fix capistrano and readme 2013-02-20 13:41:10 -05:00
John Bintz fd84bee21a derp 2013-02-20 13:25:52 -05:00
John Bintz 0dc5789ac7 fix rake task 2013-02-20 13:23:10 -05:00
John Bintz 83da44aecb initial commit 2013-02-20 13:09:29 -05:00