From a1087b48fec46140ee3816f0a7b1dfc9adf98a19 Mon Sep 17 00:00:00 2001 From: Eric Watson Date: Mon, 25 May 2009 11:46:39 -0500 Subject: [PATCH] Enabled casting of CastedModel attributes --- lib/couchrest/more/casted_model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/couchrest/more/casted_model.rb b/lib/couchrest/more/casted_model.rb index 6f442c8..16a9b11 100644 --- a/lib/couchrest/more/casted_model.rb +++ b/lib/couchrest/more/casted_model.rb @@ -10,11 +10,11 @@ module CouchRest def initialize(keys={}) raise StandardError unless self.is_a? Hash - apply_defaults # defined in CouchRest::Mixins::Properties super() keys.each do |k,v| self[k.to_s] = v end if keys + apply_defaults # defined in CouchRest::Mixins::Properties cast_keys # defined in CouchRest::Mixins::Properties end