Skip to content

Commit

Permalink
Merge pull request lynndylanhurley#508 from fivetwentysix/fix/rails-5…
Browse files Browse the repository at this point in the history
…-undefined-method-on-create

send_on_create_confirmation_instructions callback isn't defined (rails 5)
  • Loading branch information
booleanbetrayal committed Jan 23, 2016
2 parents 30f2703 + 94b01a7 commit 85713d3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def create

begin
# override email confirmation, must be sent manually from ctrl
resource_class.set_callback("create", :after, :send_on_create_confirmation_instructions)
resource_class.skip_callback("create", :after, :send_on_create_confirmation_instructions)
if @resource.save
yield @resource if block_given?
Expand Down

0 comments on commit 85713d3

Please sign in to comment.