Skip to content

Commit

Permalink
modified readme file explaining new feature
Browse files Browse the repository at this point in the history
  • Loading branch information
arydjmal committed Jul 30, 2008
1 parent 9149618 commit 82cd4a9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.rdoc
Expand Up @@ -16,7 +16,17 @@ This simple plugin gives you the ability to call to_csv to a collection of activ
@users.to_csv(:timestamps => true, :id => true, :header => false)
@users.to_csv(:except => [:last_name, :role])
@users.to_csv(:except => :role, :methods => [:name, :admin?])


#
# NEW FEATURE
# Now you can call methods of a has_one or belongs_to association
# (for now you can go up/down 1 level)
#
(A note belongs_to :user)
@notes = Note.all
@notes.to_csv(:methods => [{:user => :name}])



== Real life example

Expand Down

0 comments on commit 82cd4a9

Please sign in to comment.