Closed Burgestrand closed 9 years ago
e.g.
ProjectSerializer = Serial::Serializer.new do |h, project| h.attribute(:id) # => no value, no block => project.id end
If this is done, care should be taken to still allow nil as a value for attributes.
nil
I don't think I like this, it's too implicit.
e.g.