diff --git a/rack-protection/lib/rack/protection.rb b/rack-protection/lib/rack/protection.rb index eb7c8ff6..089b2c28 100644 --- a/rack-protection/lib/rack/protection.rb +++ b/rack-protection/lib/rack/protection.rb @@ -3,6 +3,7 @@ require 'rack' module Rack module Protection + autoload :AccessControl, 'rack/protection/access_control' autoload :AuthenticityToken, 'rack/protection/authenticity_token' autoload :Base, 'rack/protection/base' autoload :EscapedParams, 'rack/protection/escaped_params' diff --git a/rack-protection/lib/rack/protection/access_control.rb b/rack-protection/lib/rack/protection/access_control.rb new file mode 100644 index 00000000..05ccf89b --- /dev/null +++ b/rack-protection/lib/rack/protection/access_control.rb @@ -0,0 +1,8 @@ +require 'rack/protection' + +module Rack + module Protection + class AccessControl < Base + end + end +end diff --git a/rack-protection/spec/access_control_spec.rb b/rack-protection/spec/access_control_spec.rb new file mode 100644 index 00000000..818b45d8 --- /dev/null +++ b/rack-protection/spec/access_control_spec.rb @@ -0,0 +1,5 @@ +require File.expand_path('../spec_helper.rb', __FILE__) + +describe Rack::Protection::AccessControl do + it_behaves_like "any rack application" +end