Skip to content

Instantly share code, notes, and snippets.

@libryder
Created March 13, 2012 21:43
Show Gist options
  • Select an option

  • Save libryder/2031915 to your computer and use it in GitHub Desktop.

Select an option

Save libryder/2031915 to your computer and use it in GitHub Desktop.
nested_attributes = validate_hash[:criteria].merge({
'target_route' => {
'kind' => 'RouteByMessage',
'message_options_attributes' => {
'message' => 'blank',
'target_did' => ringto
}
}
}).with_indifferent_access
nested_attributes = validate_hash[:criteria].merge({
'target_route' => {
'kind' => 'RouteByMessage',
'message_options_attributes' => [{
'message' => 'blank',
'target_did' => ringto
}]
}
}).with_indifferent_access
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment