Skip to content

Instantly share code, notes, and snippets.

@voodoorai2000
Last active December 7, 2017 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voodoorai2000/67c1397de33c54d05b7150d3d628441c to your computer and use it in GitHub Desktop.
Save voodoorai2000/67c1397de33c54d05b7150d3d628441c to your computer and use it in GitHub Desktop.
CONSUL - Skipping census and sms verification
#add this line to `config/application.rb`
config.paths['app/models/concerns'].unshift(Rails.root.join('app', 'models', 'concerns', 'custom'))
#add you custom implementation to `app/models/concerns/custom/verification.rb`, for example:
require_dependency Rails.root.join('app', 'models', 'concerns', 'verification').to_s
module Verification
extend ActiveSupport::Concern
def residence_verified?
true
end
def sms_verified?
true
end
def verification_letter_sent?
true
end
def level_three_verified?
true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment