ruby on rails - Reason behind a method defined to explicitly access model -
i ran across code while resolving merge conflicts , having tough time understanding justification doing this.
can tell me if there reason having method defined access model explicitly.
private def message_class customermessage end def lookup_message_class customermessage end hopefully misunderstanding something, because done multiple times coworker.
no point of doing that.
if want change class afterward, change everywhere.
Comments
Post a Comment