Skip to content

Instantly share code, notes, and snippets.

@leikind
Created December 6, 2010 13:16
Show Gist options
  • Save leikind/730266 to your computer and use it in GitHub Desktop.
Save leikind/730266 to your computer and use it in GitHub Desktop.
Myself versus consultants #3
elsif @advertiser=Company.find(params[:filter][:advertiser_id])
@point_transactions = current_user.point_transactions_as_target.find_all_by_keyword("AD_REDEEMING") +
current_user.point_transactions_as_source.find_all_by_keyword("ARTICLE_PURCHASE") +
current_user.point_transactions_as_target.find_all_by_keyword("WHITE_TRANSACTION") +
current_user.point_transactions_as_source.find_all_by_keyword("WHITE_TRANSACTION") +
current_user.point_transactions_as_target.find_all_by_keyword("CARD_INFO") +
current_user.point_transactions_as_source.find_all_by_keyword("CARD_INFO") +
current_user.point_transactions_as_target.find_all_by_keyword("CARD_POSITIVE") +
current_user.point_transactions_as_source.find_all_by_keyword("CARD_POSITIVE")
@point_transactions.reject! {|pt| pt.advertiser != @advertiser }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment