Skip to content
Browse files

Add sinatra helpers.

  • Loading branch information...
1 parent a708a5c commit 14aa8f66a06c3de9645510b6f9c95cc8da70329f @peter-murach committed
Showing with 13 additions and 0 deletions.
  1. +13 −0 lib/rack/policy/sinatra.rb
View
13 lib/rack/policy/sinatra.rb
@@ -0,0 +1,13 @@
+# -*- encoding: utf-8 -*-
+
+module Rack
+ module Policy
+ module Sinatra
+ def self.registered(app)
+ app.helpers Rack::Policy::Helpers
+ end
+ end # Sinatra
+ end # Policy
+end # Rack
+
+Sinatra.register Rack::Policy::Sinatra

0 comments on commit 14aa8f6

Please sign in to comment.
Something went wrong with that request. Please try again.