restpack-web 0.1.30 → 0.1.31
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,14 @@
|
|
1
1
|
module RestPack
|
2
|
-
module
|
3
|
-
module
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
module Web
|
3
|
+
module Rails
|
4
|
+
module Controller
|
5
|
+
def self.included(base)
|
6
|
+
base.send(:before_filter, :include_restpack)
|
7
|
+
end
|
7
8
|
|
8
|
-
|
9
|
-
|
9
|
+
def include_restpack
|
10
|
+
@restpack = RestPack::Web::Context.new(request.env)
|
11
|
+
end
|
10
12
|
end
|
11
13
|
end
|
12
14
|
end
|
data/lib/restpack-web/version.rb
CHANGED