I am duplicating a rails object, it is duplicating fine with all details except the created_at
value of the object. I am using deep_clone gem for doing deep duplication .
Here is the code . I want created_at value of raw_materials and costing_items .
@costing = @old_costing.deep_clone :include => [{style: :images}, {raw_materials: :costing_items} , :other_cost_fixeds, :other_costs, :exchange_rates ], :use_dictionary => true do |original, kopy|
kopy.remote_picture_url = original.picture_url if kopy.is_a?(Image)
end