Sha256: 17d0f65266a30ddf219a0996861e280beed93d9bd6070485c1be73baaea40f2c
Contents?: true
Size: 752 Bytes
Versions: 23
Compression:
Stored size: 752 Bytes
Contents
require 'rhoconnect/handler/query' require 'rhoconnect/handler/changes' require 'rhoconnect/handler/plugin_callbacks' module Rhoconnect module Handler module Sync 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 end end end
Version data entries
23 entries across 23 versions & 1 rubygems