Frederick Cheung wrote:

> Jörg Battermann wrote:

>> I have a quick Q: I am using the acts_as_follower plugin which comes
>> with its own 'Follow' model (lib/follow.rb). Now what I wanted to do
>> is basically take this, copy it from the vendor/plugins/... to app/
>> models/ and start modifying it from there.
>>
>> However, as it turns out... none of the code in my app/models/
>> follow.rb file is loaded/run/available... only the one specified in
>> the vendor/plugins/acts_as_follower/lib/follow.rb one.
>>
>> Is this wanted that way? Or what can I do in this case?
>>
> What happens is that rails has already loaded the one in the plugin so  
> when it comes accross the Follow constant it's not undefined so it  
> doesn't go off searching for a follow.rb (at least that's what happens  
> in dev mode).
> Explicitly requiring your own one might do the trick.

Change the name of your model. "Follow" is not an application-specific noun, 
anyway!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to