lib/dav4rack/resource.rb in dav4rack-0.2.4 vs lib/dav4rack/resource.rb in dav4rack-0.2.5
- old
+ new
@@ -61,10 +61,15 @@
# public_path -> /my/webdav/directory/actual/path
# path -> /actual/path
# NOTE: Customized Resources should not use initialize for setup. Instead
# use the #setup method
def initialize(public_path, path, request, response, options)
- @skip_alias = [:authenticate, :authentication_error_msg, :authentication_realm, :path, :options, :public_path, :request, :response, :user, :user=]
+ @skip_alias = [
+ :authenticate, :authentication_error_msg,
+ :authentication_realm, :path, :options,
+ :public_path, :request, :response, :user,
+ :user=, :setup
+ ]
@public_path = public_path.dup
@path = path.dup
@request = request
@response = response
unless(options.has_key?(:lock_class))