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
app.before do
params[:source_name] = app._rest_name
params[:source_id] = app._rest_name
end
end
|