/ Published in: Ruby
Expand |
Embed | Plain Text
def create_something(options = {}) Something.create({:option1 => \"foo\", :option2 => \"bar\"}.merge(options)) end
You need to login to post a comment.
tjstankus on 07/08/06
3 people have marked this snippet as a favorite
def create_something(options = {}) Something.create({:option1 => \"foo\", :option2 => \"bar\"}.merge(options)) end
You need to login to post a comment.