rails when to use self.
Posted
by fenec
on Stack Overflow
See other posts from Stack Overflow
or by fenec
Published on 2010-03-25T03:29:41Z
Indexed on
2010/03/25
3:33 UTC
Read the original article
Hit count: 410
ruby-on-rails
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
© Stack Overflow or respective owner