machinist_mongo icon indicating copy to clipboard operation
machinist_mongo copied to clipboard

I can not set created_at attribute in blueprint

Open Lewy opened this issue 13 years ago • 0 comments

machinist_mongo (1.1.1) mongoid (2.0.0.beta.20 4ef5fd0) mongo (1.1.5) rails 3.0.1

Code: https://gist.github.com/776097

If I create @radar_traffic it always has created_at = Time.now not Time.new(2008). When I add attr_accessible :created_at to my model it works. I try to resolve this problem buy writing in my spec

@radar_traffic = Radar.make(:near_poznan3) @radar_traffic.created_at = Time.new(2008)

but it also doesn't work

Lewy avatar Jan 12 '11 12:01 Lewy