zachinglis (owner)

Revisions

gist: 89941 Download_button fork
public
Public Clone URL: git://gist.github.com/89941.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
## Listing
  has_one :residential
 
  delegate :room_desc
 
## Listing::Residential
 
## Console
>> listing.room_desc = "This is a room"
=> "This is a room"
>> listing.room_desc
=> "This is a room"
>> listing.attributes[:room_desc] = "this is something else"
=> "this is something else"
>> listing.room_desc
=> "This is a room"
 
## What I want to do
      listing = Listing.new
      listing.build_residential
      listing.attributes = attributes_hash