Skip to content

Instantly share code, notes, and snippets.

@knewter
Forked from rclements/gist:3365290
Created August 16, 2012 01:18
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 knewter/3365302 to your computer and use it in GitHub Desktop.
Save knewter/3365302 to your computer and use it in GitHub Desktop.
7 def main_account_name(school)
8 "TEACHER#{id} MAIN SCHOOL#{school.id}"
9 end
10
11 def unredeemed_account_name
12 "TEACHER#{id} UNREDEEMED"
13 end
14
15 def undeposited_account_name
16 "TEACHER#{id} UNDEPOSITED"
17 end
18
19 def main_account(school)
20 Plutus::Asset.find_by_name main_account_name(school)
21 end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment