Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class TwoFactorAuthenticationGenerator < Rails::Generators::NamedBase

def inject_two_factor_authentication_content
path = File.join("app", "models", "#{file_path}.rb")
inject_into_file(path, "two_factor_authenticatable, :", :after => "devise :") if File.exists?(path)
inject_into_file(path, "two_factor_authenticatable, :", :after => "devise :") if File.exist?(path)
end

hook_for :orm
Expand Down