-
-
Save leikind/730266 to your computer and use it in GitHub Desktop.
Myself versus consultants #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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