rails 3.2 supports :data => {:id => ...} might worth adapting that as it would serialize the value if required.