Posted By

tjstankus on 07/08/06


Tagged

rails


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

alvaroisorna
jpb
webstic


Create with merge options


 / Published in: Ruby
 

  1. def create_something(options = {})
  2. Something.create({:option1 => \"foo\", :option2 => \"bar\"}.merge(options))
  3. end

Report this snippet  

You need to login to post a comment.