Question: when do I need to use self in my models in Rails?
I have a set method in one of my models.
set
class SomeData < ActiveRecord::B
When use active_flag = val ruby thought your are define a local variable, the best way is self.active_flag = val, if you got it, hope you know that send(:active_flag=, val) will works too.
active_flag = val
self.active_flag = val
send(:active_flag=, val)