From d731d4e80375f5546a79e90933aac6ad7320e77f Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Sat, 12 Sep 2015 23:49:45 +1000 Subject: [PATCH] Making sure flash is a hash so that is can be used to initialize OpenStuct --- app/views/json/_flash.rabl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/json/_flash.rabl b/app/views/json/_flash.rabl index dce07f849a..2900b2b948 100644 --- a/app/views/json/_flash.rabl +++ b/app/views/json/_flash.rabl @@ -1,2 +1,2 @@ -object OpenStruct.new(flash) +object OpenStruct.new(flash.to_hash) attributes :info, :success, :error