Permalink
Browse files

Merge branch 'master' of github.com:appoxy/simple_record

  • Loading branch information...
2 parents 83c7988 + bb01234 commit f58a1bab82fd5fac12f20539a8deb406a4317859 @treeder treeder committed May 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/simple_record/json.rb
@@ -31,7 +31,7 @@ def as_json(options={})
result = {
'id' => self.id
}
- result['json_class'] = self.class.name unless options[:exclude_json_class]
+ result['json_class'] = self.class.name unless options && options[:exclude_json_class]
defined_attributes_local.each_pair do |name, val|
# puts name.to_s + "=" + val.inspect
if val.type == :belongs_to

0 comments on commit f58a1ba

Please sign in to comment.