Module: SyncAttrWithAuth0::Model::ClassMethods

Defined in:
lib/sync_attr_with_auth0/model.rb

Instance Method Summary collapse

Instance Method Details

#sync_attr_with_auth0(options = {}) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/sync_attr_with_auth0/model.rb', line 9

def sync_attr_with_auth0(options = {})
  class_attribute :auth0_sync_options

  verify_environment_variables
  merge_default_options(options)

  after_validation :validate_email_with_auth0
  after_create :auth0_create
  after_update :auth0_update
end