Skip to content

After_filter issue in production #1

@baldwindavid

Description

@baldwindavid

Thank you for the plugin. I seem to be encountering some unexpected behavior upon deployment. I am uploading and returning a js response without issue in development. However, when moving to production I seem to only be able to return a js response if performing ONE of two things...

  1. Set "config.cache_classes = false" in config/environments/production.rb
  2. adding "after_filter :format_response_for_ajax_file_uploads" to application_controller.rb

So it seems that my controller may be caching without the after_filter when included. Any thoughts as to why I would be running into this issue?

Best regards,
David Baldwin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions