Closed magni- closed 3 years ago
class A < Grape::Entity self.hash_access = :to_s expose :a expose :b, expose_nil: false end A.represent({ 'a' => 1, 'b' => 2 }).as_json # expected: { a: 1, b: 2 } # actual: { a: 1 }
Reproduction steps