This website works better with JavaScript.
Home
Explore
Help
Sign In
bike
/
BikeShed-1
mirror of
https://github.com/fspc/BikeShed-1.git
Watch
1
Star
0
Fork
0
Code
Issues
Projects
Releases
Wiki
Activity
Velocipede's User, Sales, and Bike Inventory Web App
345
Commits
8
Branches
8
Tags
44 MiB
Tree:
517950c42c
BikeShed-1
/
app
/
models
/
credit_conversion.rb
4 lines
78 B
Raw
Normal View
History
Added credit tracking and stats Added credit_conversions table so conversions can change over time Added default credit conversion fixture Added User#transaction_logs Added User#total_credits (earned minus spent) Added User#total_credits_spent (through transaction_logs) Added User#total_earned_credits (complicated query which finds the conversion rate for a log depending on its created_at date)
12 years ago
class
CreditConversion
<
ActiveRecord
::
Base
attr_accessible
:conversion
end