Skip to content
This repository has been archived by the owner on Mar 2, 2020. It is now read-only.

I have to restart my environment to make mail_preview loading changes #75

Open
tonatiuh opened this issue May 20, 2014 · 1 comment
Open

Comments

@tonatiuh
Copy link

Steps to reproduce:

  1. Executing this code which has an error
class MailPreview < MailView
    def invitation
      this_will_raise_an_error!!

      account = Account.first
      inviter, invitee = account.users[0, 2]
      Notifier.invitation(inviter, invitee) 
    end
end
  1. Then removing the
this_will_raise_an_error!!

The error persists until I restart the server

How should it behave?

I shouldn't need to restart the server in order to make the MailPreview execute without the "this_will_raise_an_error!!" line

@patbl
Copy link

patbl commented Nov 5, 2014

This is probably a bug in Mail View that is triggered when config.eager_load = true. In my case, I was able to delete the whole MailPreview file after starting the Rails server and still view mail previews.

You can work around it with config.eager_load = false in development.rb.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants