rails when to use self.
- by fenec
i am developing a rails application and would like to understand when do we use self.for .
here is the code of a method that i would like to fully understand.if it is possible i would like to have an alternative to this code so it would make things more clear.
enter code here
def self.for(facebook_id)
User.create_by_facebook_id(facebook_id)
end