Permalink
Browse files

remove ary, hash return hack from hasher

  • Loading branch information...
1 parent 6278fab commit 03b57bf50fa8b8a6dcacd2800a5038bc6be390dd @schorsch schorsch committed Dec 31, 2012
Showing with 1 addition and 3 deletions.
  1. +0 −2 lib/schema_tools/modules/hash.rb
  2. +1 −1 lib/schema_tools/version.rb
@@ -41,8 +41,6 @@ def from_schema(obj, opts={})
# get objects class name without inheritance
real_class_name = obj.class.name.split('::').last.underscore
class_name = opts[:class_name] || real_class_name
- # directly return array & hash values
- return obj if ['array', 'hash'].include? class_name
data = {}
# get schema
@@ -1,3 +1,3 @@
module SchemaBuilder
- VERSION = '0.0.5'
+ VERSION = '0.0.6'
end

0 comments on commit 03b57bf

Please sign in to comment.