Skip to content

Instantly share code, notes, and snippets.

@rclements
Created August 16, 2012 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rclements/3365290 to your computer and use it in GitHub Desktop.
Save rclements/3365290 to your computer and use it in GitHub Desktop.
7 def main_account_name
8 "TEACHER#{id} MAIN"
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#{school.id}"
21 end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment