Module: Rhoconnect::Handler::Sync

Defined in:
lib/rhoconnect/handler/sync.rb

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/rhoconnect/handler/sync.rb', line 8

def self.registered(app)
	app.set_default :admin_required, false
  app.set_default :login_required, true
  app.set_default :source_required, true
  app.set_default :client_required, true

	app.register Rhoconnect::Handler::Query
	app.register Rhoconnect::Handler::Changes
	app.register Rhoconnect::Handler::PluginCallbacks

   # source name is available inherently from controller
   app.before do
     params[:source_name] = app._rest_name
     params[:source_id] = app._rest_name
   end
end