I have problem in my model. I want method to use another property of model but before using it I want another method to be executed (to make property have value). Here is an example:
def medthod_one=(val)
self.value = val
end
def method_two
self.second_value = self.value / 2 #just for example
end
So, in my case self.second_value
is invalid because self.value
is not set yet. How to change those methods execution sequence after submitting create form for this model?