lib/transcriber/resource/response.rb in transcriber-0.0.2 vs lib/transcriber/resource/response.rb in transcriber-0.0.3
- old
+ new
@@ -4,8 +4,9 @@
def normalize(model, options = {})
model.kind_of?(Enumerable) ?
{entries: model.map(&:resource)}
: model.resource
end
+ alias :resources :normalize
end
end
end