Skip to content

Instantly share code, notes, and snippets.

@smpallen99
Created April 25, 2017 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smpallen99/92d826b6f523edd83b4a358cf05e97e7 to your computer and use it in GitHub Desktop.
Save smpallen99/92d826b6f523edd83b4a358cf05e97e7 to your computer and use it in GitHub Desktop.
Coherence 0.3.1 to 0.4.0 Upgrade Instructions

Coherence 0.3.1 to 0.4.0 Upgrade Instructions

Update your configuration

Two new manditory configuration keys are required

add:

config :coherence,
  # ...
  messages_backend: MyProject.Coherence.Messages,
  router: MyProject.Web.Router

Generate new Boilerplate

The following boilerplate files have been updated:

TOO: Update this list!!

  • web/controllers/coherence/cofirmation_controller.ex
  • web/controllers/cohe/coherence/registration_controller.ex
  • web/controllers/coherence/session_controller.ex
  • web/emails/coherence/user_email.ex
  • web/models/coherence/user.ex
  • web/templates/coherence/registration/edit.html.eex
  • web/templates/coherence/registration/edit.html.eex
  • web/views/coherence/coherence_view_helpers.exrence/redirects.ex
  • web/controllers

To update the boilerplate, run:

mix coherence.install --reinstall

Run a git diff to review the updated files. If you had updated any of the boilerplate files, you may need to manually integrate the changes into the newly generated files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment