Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ModelName << ActiveRecord::Base
- def sum_of_price
- price * number_of_stock
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement