Skip to content

Instantly share code, notes, and snippets.

@Blue-Dog-Archolite
Created January 7, 2015 20:28
Show Gist options
  • Save Blue-Dog-Archolite/1f3cc9b7bce8bb6a94ae to your computer and use it in GitHub Desktop.
Save Blue-Dog-Archolite/1f3cc9b7bce8bb6a94ae to your computer and use it in GitHub Desktop.
array hash
sources =
[
{
value: "text"
name: "Text"
},
{
value: "date_range"
name: "Date"
},
{
value: "moderation_status"
name: "Status"
}
]
sources2 = [
{
value: "More text"
name: "Text"
},
{
value: "other date_range"
name: "Date"
},
{
value: "new moderation_status"
name: "Status"
}
]
new_sources should be value of source + source2
so
[{ name:"Status", value: "moderation_status new moderation_status"}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment