mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Do not show model exist message on revoke behavior, closes #334
This commit is contained in:
parent
e90732c8c3
commit
fccde42f20
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@ module Devise
|
|||
class_option :migration, :type => :boolean, :default => orm_has_migration?
|
||||
|
||||
def invoke_orm_model
|
||||
return unless behavior == :invoke
|
||||
|
||||
if model_exists?
|
||||
say "* Model already exists. Adding Devise behavior."
|
||||
elsif options[:orm].present?
|
||||
|
|
Loading…
Add table
Reference in a new issue