lib/shamu/attributes.rb in shamu-0.0.19 vs lib/shamu/attributes.rb in shamu-0.0.20
- old
+ new
@@ -115,9 +115,11 @@
end
def build_value( build, value )
if build.is_a?( Class )
build.new( value )
+ elsif build.is_a?( Symbol )
+ value.send( build )
else
build.call( value )
end
end