cypriss / mutations

Compose your business logic into commands that sanitize and validate input.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I accept arbitrary hash data?

opened this issue · comments

Not an issue per-se, but I would like to do something like:

required do
integer :page_id
hash :user_defined_page_data
end

Where user_defined_page_data is a hash provided by the end user.

Thank you,

Use :

model :user_defined_page_data, class: Hash


Sent from Mailbox

On Sat, May 24, 2014 at 9:49 AM, atteeela notifications@github.com
wrote:

Not an issue per-se, but I would like to do something like:
required do
integer :page_id
hash :user_defined_page_data
end
Where user_defined_page_data is a hash provided by the end user.

Thank you,

Reply to this email directly or view it on GitHub:
#63

I assume that this answers your question, feel free to open a new issue if you have any further questions.

Awesome. Thank you