Skip to content

Instantly share code, notes, and snippets.

@leikind
Created Dec 6, 2010
Embed
What would you like to do?
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