crender 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/crender.gemspec +1 -1
- data/lib/render.rb +1 -1
- metadata +2 -2
data/crender.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = %q{crender}
|
|
3
|
-
s.version = "0.0.
|
|
3
|
+
s.version = "0.0.2"
|
|
4
4
|
s.files = ["./crender.gemspec", "./Gemfile", "./Gemfile.lock", "./init.rb", "./lib", "./lib/crender.rb", "./lib/render.rb"]
|
|
5
5
|
s.authors = ["Eugene Ovchynnykov"]
|
|
6
6
|
s.summary = "Add possibility to render controllers action from other controller"
|
data/lib/render.rb
CHANGED
|
@@ -3,7 +3,7 @@ module ActionController
|
|
|
3
3
|
|
|
4
4
|
alias_method :render_orig, :render
|
|
5
5
|
def render_controller(controller_class, options = {:action => :index})
|
|
6
|
-
status, headers, resp = controller_class.action(options[:action]).call(env)
|
|
6
|
+
status, headers, resp = controller_class.action(options[:action]).call(request.env)
|
|
7
7
|
render_orig :text => resp.body, :status => status
|
|
8
8
|
end
|
|
9
9
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: crender
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-06-13 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description:
|
|
15
15
|
email:
|