many important fixes
This commit is contained in:
@@ -16,11 +16,13 @@ require File.expand_path('./../../lib/couchbase-setting', __FILE__)
|
||||
Bundler.require(*Rails.groups(assets: %w(development test user_app)))
|
||||
Bundler.require(:assets) if ENV['DEPLOY']=='yes'
|
||||
|
||||
class CouchRest::Connection
|
||||
alias_method :old_execute, :execute
|
||||
def execute(method, path, options, payload = nil, &block)
|
||||
Rails.logger.debug "Couch: #{method} #{Rack::Utils.unescape path} #{options}"
|
||||
old_execute(method, path, options, payload, &block)
|
||||
if Rails.env.development?
|
||||
class CouchRest::Connection
|
||||
alias_method :old_execute, :execute
|
||||
def execute(method, path, options, payload = nil, &block)
|
||||
Rails.logger.debug "Couch: #{method} #{Rack::Utils.unescape path} #{options}"
|
||||
old_execute(method, path, options, payload, &block)
|
||||
end
|
||||
end
|
||||
end
|
||||
# Bug in actionview error handling, remove for versions > 6.0.2.1
|
||||
|
||||
Reference in New Issue
Block a user