ruby - what is "oh" method in rails 2.3? -


the code below comments controller. "oh" doing in line 3?

@offer = offer.find(params[:offer_id]) @offer_comment = @offer.offer_comments.build(params[:offer_comment]) @offer_comment.commenter oh = current_user @offer_comment.save! notify::offer_comment_create(@offer_comment) @offer.update_attribute(:read, false) if @offer.read? , current_user == @offer.offerer 

ruby see line as:

@offer_comment.commenter(oh = current_user) 

so it'll assign current_user oh , commenter receive current_user it's argument.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -