Nope. CE uses Desert, which automatically mixes code from your models
into CE's. So any methods you add to your user will just be appended
to CE's, and if you define methods in you model that have the same
name as an existing method, they'll overwrite the existing one. Pretty
nice, huh?
On Apr 8, 2010, at 4:32 PM, Tim Uckun <[email protected]> wrote:
On Fri, Apr 9, 2010 at 8:57 AM, Bruno Bornsztein
<[email protected]> wrote:
If you have some experience doing Rails development, it's pretty
easy. It's
basically just a normal Rails app, so, for example if you wanted to
add user
wishlists:
class Wishlist < ActiveRecord::Base
belongs_to :user
end
#add user.rb to your app/models folder
class User < ActiveRecord::Base
has_many :wishlists
end
Wow. I am glad it's that easy. Doesn't creating a new user model
stomp on the existing user model though? Should my user model inherit
from CE user model?
--
You received this message because you are subscribed to the Google
Groups "CommunityEngine" 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/communityengine?hl=en
.
--
You received this message because you are subscribed to the Google Groups
"CommunityEngine" 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/communityengine?hl=en.