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

Version Path
rhoconnect-7.6.0 lib/rhoconnect/handler/sync.rb
rhoconnect-7.5.1 lib/rhoconnect/handler/sync.rb
rhoconnect-7.4.1 lib/rhoconnect/handler/sync.rb
rhoconnect-7.1.17 lib/rhoconnect/handler/sync.rb
rhoconnect-6.2.0 lib/rhoconnect/handler/sync.rb
rhoconnect-6.0.11 lib/rhoconnect/handler/sync.rb
rhoconnect-5.5.18 lib/rhoconnect/handler/sync.rb
rhoconnect-5.5.17 lib/rhoconnect/handler/sync.rb
rhoconnect-5.5.15 lib/rhoconnect/handler/sync.rb
rhoconnect-5.5.0.22 lib/rhoconnect/handler/sync.rb
rhoconnect-5.5.2 lib/rhoconnect/handler/sync.rb
rhoconnect-5.5.0.7 lib/rhoconnect/handler/sync.rb
rhoconnect-5.5.0.3 lib/rhoconnect/handler/sync.rb
rhoconnect-5.5.0 lib/rhoconnect/handler/sync.rb
rhoconnect-5.1.1 lib/rhoconnect/handler/sync.rb
rhoconnect-4.0.4 lib/rhoconnect/handler/sync.rb
rhoconnect-4.0.3 lib/rhoconnect/handler/sync.rb
rhoconnect-4.0.2 lib/rhoconnect/handler/sync.rb
rhoconnect-4.0.1 lib/rhoconnect/handler/sync.rb
rhoconnect-4.0.0 lib/rhoconnect/handler/sync.rb