Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 24th, 2012  |  syntax: None  |  size: 0.19 KB  |  views: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Model.api_call params[:field]
  2. @model.api_call params[:field]
  3.        
  4. Model.set_parameters(params)
  5.  
  6. def self.set_parameters(params)
  7.   @@params = params
  8. end
  9.  
  10. # access it in methods with @@params
clone this paste RAW Paste Data