Skip to content

Commit

Permalink
make the example belong to a user
Browse files Browse the repository at this point in the history
  • Loading branch information
paulca committed Apr 7, 2009
1 parent a6e3691 commit c9b89ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.textile
Expand Up @@ -73,6 +73,7 @@ To extend the power of the can_* methods, just create them on the model that you
end

class Bicyle < ActiveRecord::Base
belongs_to :user

def can_ride?(user)
return true if user.has_legs?
Expand Down

0 comments on commit c9b89ae

Please sign in to comment.