template/api/mounts/auth.rb.tt in grape-gen-0.0.5 vs template/api/mounts/auth.rb.tt in grape-gen-0.0.6

- old
+ new

@@ -32,10 +32,10 @@ @user = Models::User.find_by(email: params[:email].downcase, email_approvement_code: params[:email_approvement_code]) @user.email_approved! @user.save header['X-Authorize'] = @user.token <% if @faye %> - FayePublisher.publish('/user/registered', {display_name: @user.display_name}) + Faye::Publisher.instance.publish('/user/registered', {display_name: @user.display_name}) <% end %> end end end end \ No newline at end of file