Skip to content

Instantly share code, notes, and snippets.

@aahmad
Created February 21, 2014 19:42
Show Gist options
  • Select an option

  • Save aahmad/9141909 to your computer and use it in GitHub Desktop.

Select an option

Save aahmad/9141909 to your computer and use it in GitHub Desktop.

Revisions

  1. Afra Ahmad created this gist Feb 21, 2014.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    if !params[:searchable].present?
    params[:searchable] = {}
    end
    params[:searchable][:account_id] = @account.id