Class: Skydrive::EmberController

Inherits:
ApplicationController show all
Defined in:
app/controllers/skydrive/ember_controller.rb

Instance Method Summary collapse

Instance Method Details

#generate_authenticationObject



13
14
15
16
17
18
19
20
21
# File 'app/controllers/skydrive/ember_controller.rb', line 13

def generate_authentication
  @account = Account.new()
  @account.key = SecureRandom.uuid
  @account.secret = SecureRandom.hex
  if !@account.save
    render 'new_authentication', layout: false
  end
  render layout: false
end

#health_checkObject



23
24
25
26
27
28
29
# File 'app/controllers/skydrive/ember_controller.rb', line 23

def health_check
  if database_healthy?
    head 200
  else
    head 500
  end
end

#indexObject



5
6
# File 'app/controllers/skydrive/ember_controller.rb', line 5

def index
end

#new_authenticationObject



8
9
10
11
# File 'app/controllers/skydrive/ember_controller.rb', line 8

def new_authentication
  @account = Account.new
  render layout: false
end