Module: Maestrano::Api::Concerns::AccountController

Extended by:
ActiveSupport::Concern
Included in:
AccountController
Defined in:
app/controllers/maestrano/api/concerns/account_controller.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details



49
50
51
# File 'app/controllers/maestrano/api/concerns/account_controller.rb', line 49

def 
  render json: {error: 'Method to link account has not been implemented'}
end

#setup_formObject

Instance methods



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'app/controllers/maestrano/api/concerns/account_controller.rb', line 27

def setup_form
  form = {
    schema: {
      type: 'object',
      properties: {
        array: {
          title: 'You have not configured your schema form',
          type: 'array',
          items: {
            type: 'string',
            enum: [
              "Ok I'll do it right away",
              "I'll let someone else do it for me"
            ]
          }
        }
      }
    }
  }
  render json: form.to_json
end


53
54
55
56
57
# File 'app/controllers/maestrano/api/concerns/account_controller.rb', line 53

def 
  organization = Maestrano::Connector::Rails::Organization.find_by(uid: params[:uid])
  organization.clear_omniauth
  render json: {status: 'ok'}.to_json
end