node(:status) { @status }
node(:message) { @message }
object @patient
attributes :medication, :guardian_id, :id, :name, :email, :username, :address, :age, :gender
node :errors do |e|
e.errors
end
I want something like this
if object is patient
do this
eleif object is doctor
do this
How to apply condition in rabl file?