James Siminoff RSS

I am currently the Chief Inventor at Edison Jr President of NobelBiz and Chief Strategy Advisor of Ditech Networks (DITC). The past is on LinkedIn

This blog is about my life as a serial entrepreneur, husband, traveler, inventor and father.

J@EdisonJunior.com










Archive

Oct
26th
Mon
permalink
Building or creating an object through a has_one association that contains conditionals will now automatically append those conditions to the newly created object, thanks to Luciano Panaro

-Nathaniel Bibler on the official Ruby on Rails blog.

Luciano is one of our team members and I could not be happier to see that he is being credited for assisting the furthering of rails.  Opensource is something that Mark and I take very seriously and participating in the communities is such a important part of that.  Big congrats from everyone on the team to Luciano!!!

The actual code is below, though sadly I have no idea what it means:)

class Blog
has_author :commit_author, :class_name =>
'Author', :conditions =>
{:name => "Luciano Panaro"}
end

@blog.build_commit_author
# => #<Author name: "Luciano Panaro" ... >
Comments (View)