From 96d49bf04ce77c975fe500f4d961e4a1ffed4c26 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sun, 30 Dec 2012 14:43:00 +0200 Subject: Use sdoc to generate application code documentation --- doc/code/classes/ResqueAuthentication.html | 182 +++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 doc/code/classes/ResqueAuthentication.html (limited to 'doc/code/classes/ResqueAuthentication.html') diff --git a/doc/code/classes/ResqueAuthentication.html b/doc/code/classes/ResqueAuthentication.html new file mode 100644 index 00000000000..ec3fc9e470f --- /dev/null +++ b/doc/code/classes/ResqueAuthentication.html @@ -0,0 +1,182 @@ + + + + + ResqueAuthentication + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + +
Methods
+
+ +
C
+
+
    + + +
  • + call +
  • + +
+
+ +
N
+
+
    + + +
  • + new +
  • + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + +
Class Public methods
+ +
+
+ + new(app) + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File config/initializers/4_resque.rb, line 14
+def initialize(app)
+  @app = app
+end
+
+
+ +
+ +
Instance Public methods
+ +
+
+ + call(env) + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File config/initializers/4_resque.rb, line 18
+def call(env)
+  account = env['warden'].authenticate!(:database_authenticatable, :rememberable, scope: :user)
+  raise "Access denied" if !account.admin?
+  @app.call(env)
+end
+
+
+ +
+
+ +
+ + \ No newline at end of file -- cgit v1.2.1