lib/transcriber/resource/response/embeddable.rb in transcriber-0.0.17 vs lib/transcriber/resource/response/embeddable.rb in transcriber-0.0.18
- old
+ new
@@ -2,10 +2,9 @@
class Resource
module Response
module Embeddable
def to_resource(parent)
return {} unless visible?(parent)
-
resource = nil
if embedded = parent.__send__(name)
resource = raw? ? embedded : resourcify(embedded)
elsif many?