threadless 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/threadless.rb +9 -10
- data/threadless.gemspec +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/threadless.rb
CHANGED
@@ -71,15 +71,14 @@ class Threadless
|
|
71
71
|
|
72
72
|
[ status, headers, body ]
|
73
73
|
end
|
74
|
-
|
75
|
-
|
76
|
-
#
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
ActionController::Base.send(:include, Threadless::InstanceMethods)
|
81
|
-
ActionController::Base.send(:helper, Threadless::InstanceMethods)
|
74
|
+
|
75
|
+
#
|
76
|
+
# -- activate instance methods and middleware, on Rails
|
77
|
+
def self.init
|
78
|
+
ActionController::Base.send(:include, Threadless::InstanceMethods)
|
79
|
+
ActionController::Base.send(:helper, Threadless::InstanceMethods)
|
82
80
|
|
83
|
-
|
84
|
-
|
81
|
+
middleware = ActionController::MiddlewareStack::Middleware.new(self)
|
82
|
+
ActionController::Dispatcher.middleware.push middleware
|
83
|
+
end
|
85
84
|
end
|
data/threadless.gemspec
CHANGED