On Nov 4, 1:40 pm, "alexey.Creopolis" <[email protected]>
wrote:
> Yes i've tried it - if i remove Magick requirement then pdf model
> working, and vice versa.
> Problem that Magick having its Color class Magick::Color that is
> override on module Color (color gem)
>
> So current my solution is to generate image elsewhere..
Just don't import Magick into the toplevel namespace and you'll be ok.
Fred
>
> On Nov 4, 11:38 am, Frederick Cheung <[email protected]>
> wrote:
>
>
>
> > On Nov 4, 9:33 am, "alexey.Creopolis" <[email protected]>
> > wrote:> require 'RMagick'
> > > include Magick
> > > require 'rvg/rvg'
> > > class ModelB < ActiveRecord::Base
> > > end
> > > And in this model i generate images's.
>
> > > Problem are raised when i added ModelB rmagick support.
> > > I was unable to use pdf generator(ModelA) as well as ModelB.
>
> > > After some research i found that if i remove requires from ONE OF
> > > model, other model is working well ....
>
> > Does removing include Magick (or moving it inside the ModelB class
> > help) (obviously you may then need to say Magick::Blah rather than
> > Blah for some things) ?
>
> > Fred
>
> > > Temporary i removed ModelB requirements (generating images from
> > > another place).
> > > Looking for solution ..
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---