To override a model, don't copy the entire model from CE's model directory.
Instead, just create a new class with the same name, and override only the
methods you want to change, e.g:

class User < ActiveRecord::Base

def overridden_method
#do something here
end

end

On Wed, Jun 30, 2010 at 1:18 PM, Edward Funger <[email protected]> wrote:

> So I've been playing around with the CE plugin a bit and when I try to
> override the user.rb model by cp it into my app/models directory I
> receive a NoMemoryError. Here is an excerpt from my stack trace, it
> just repeats these three calls in an infinite loop.
>
> c:/Users/Teddy/railCode/careercup/vendor/plugins/community_engine/
> plugins/acts_as_publishable/lib/acts_as_publishable.rb:55:in
> `find_without_published_as'
> c:/Users/Teddy/railCode/careercup/vendor/plugins/community_engine/
> plugins/acts_as_publishable/lib/acts_as_publishable.rb:56:in
> `find_without_published_as'
> c:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/
> base.rb:2143:in `with_scope'
>
> --
> 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]<communityengine%[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.

Reply via email to