Let's say, I've got class Post in my application :

class Post
  include DataMapper::Resource

  property :id, Integer, :key => true, :default => ...some code...
end

Is it possible to override reader accessor for id property, like:

def id
  id.to_s + 'foo/baz/bar'
end

?


-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to