restpack-web 0.1.27 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/restpack-web/rails/controller.rb +17 -0
- data/lib/restpack-web/version.rb +1 -1
- metadata +2 -1
@@ -0,0 +1,17 @@
|
|
1
|
+
module RestPack
|
2
|
+
module Rails
|
3
|
+
module Controller
|
4
|
+
def self.included(base)
|
5
|
+
base.send(:before_filter, :include_restpack)
|
6
|
+
end
|
7
|
+
|
8
|
+
def include_restpack
|
9
|
+
@restpack = request.env[:restpack]
|
10
|
+
@domain = @restpack[:domain]
|
11
|
+
@application = @restpack[:application]
|
12
|
+
@channel = @restpack[:channel]
|
13
|
+
@user = @restpack[:user]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/restpack-web/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restpack-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.28
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -88,6 +88,7 @@ files:
|
|
88
88
|
- Rakefile
|
89
89
|
- lib/restpack-web.rb
|
90
90
|
- lib/restpack-web/app.rb
|
91
|
+
- lib/restpack-web/rails/controller.rb
|
91
92
|
- lib/restpack-web/version.rb
|
92
93
|
- restpack-web.gemspec
|
93
94
|
- spec/restpack_web_spec.rb
|