Class | Her::Model::Associations::BelongsToAssociation |
In: |
lib/her/model/associations/belongs_to_association.rb
|
Parent: | Association |
Initialize a new object
@example
class User include Her::Model belongs_to :organization end class Organization include Her::Model end user = User.find(1) new_organization = user.organization.build(:name => "Foo Inc.") new_organization # => #<Organization name="Foo Inc.">