Skip to content

Instantly share code, notes, and snippets.

@kalupa
Created March 7, 2013 20:11
Show Gist options
  • Save kalupa/5111374 to your computer and use it in GitHub Desktop.
Save kalupa/5111374 to your computer and use it in GitHub Desktop.
scope.states = (filter gon.states, country_id: scope.taxRate.country_id)
scope.states = state for state in gon.states when state.country_id is scope.taxRate.country_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment