Skip to content

Instantly share code, notes, and snippets.

@rafaelp
Created March 24, 2012 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelp/2187647 to your computer and use it in GitHub Desktop.
Save rafaelp/2187647 to your computer and use it in GitHub Desktop.
# Ao invés de fazer isso:
def do_action(hashed_code = vendor.hashed_code)
get :edit, invite_id: hashed_code
end
# Vamos fazer isso:
def do_action(params = {})
get :edit, {invite_id: vendor.hashed_code}.merge(params)
end
@mergulhao
Copy link

Acho que tem que ser um reverse merge então né?

@mergulhao
Copy link

Assim blz.

@mergulhao
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment