All Questions
3 questions
0
votes
1
answer
53
views
Updating one model field based on the associated model's field
I'm wondering if there is any way we can optimize the following code.
Scenario is Library's active field should be ...
1
vote
1
answer
560
views
Update subscription
First, some background. I have a Payment model that has_many :subscriptions. When a user pays (creates a new payment), I have an ...
3
votes
1
answer
294
views
Ruby Callback System
I need a way to store and retrieve callbacks in Ruby, so I made a Callbacks class. Any suggestions would be greatly appreciated.
...