Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

config.threadsafe! for pdf generating with images needed on development #14331

Closed
gbonline opened this Issue · 1 comment

1 participant

@gbonline

Hi, i'm working on a project with Rails 4.0.3 over a db legacy with images stored in blob field and I need to get some pdf as products catalog.
In development mode I get pdf with images if I set config.threadsafe!, also the process hang. In production all goes well.

But if I use this setting, the controllers changes I make doesn't take effect until i restart the server !!
for example:
trying for pagination , I modify the per_page parameter in index action controller, then F5 in browser and the view is the same, with the old number of elements.
If i remove the config.threadsafe! all goes as expected for development: every time I modify the code then F5 in browser I show the changes that affect views.

@gbonline

On reading some pages on RailsGuides I've seen that threadsafe! enable the cache_classes parameter.
That explain my issue!
But remain the fact that I should like to obtain the pdf with images also on development.

@gbonline gbonline closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.