Class: Plezi::Base::Router::ADClient

Inherits:
Object
  • Object
show all
Defined in:
lib/plezi/router/adclient.rb

Instance Method Summary collapse

Instance Method Details

#indexObject


10
11
12
13
14
15
# File 'lib/plezi/router/adclient.rb', line 10

def index
  fname = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'resources', 'client.js'))
  response.body = File.open(fname)
  response['X-Sendfile'] = fname
  true
end

#showObject


17
18
19
# File 'lib/plezi/router/adclient.rb', line 17

def show
  index
end