Is it possible to override a rails engine model association in a decorator? -


i'm using rails engine defines class following relation:

module blogit   class post < activerecord::base      ...      belongs_to :blogger, :polymorphic => true     ...  end 

i'm trying override association in decorator file. namely, not want association exist if possible.

in decorator file, i'm using class_eval extend class definition.

blogit::post.class_eval   ... end 

but can't seem override or destroy relation. know how this?


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo