Skip to content

Commit

Permalink
don't define registrations controller if module option is used
Browse files Browse the repository at this point in the history
  • Loading branch information
scambra committed Nov 11, 2022
1 parent 4daf6b3 commit 9b4a43f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/devise_invitable/mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ module Mapping
private

def default_controllers(options)
options[:controllers] ||= {}
options[:controllers][:registrations] ||= 'devise_invitable/registrations'
unless options[:module]
options[:controllers] ||= {}
options[:controllers][:registrations] ||= 'devise_invitable/registrations'
end
super
end
end
Expand Down

0 comments on commit 9b4a43f

Please sign in to comment.