render_anywhere 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/render_anywhere/rendering_controller.rb +3 -1
- data/lib/render_anywhere/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9425e52660e1db34fe01ee67f2a639e36706b77
|
4
|
+
data.tar.gz: e414529b8034dc9361c992d49aac8c301f133849
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcbc2f63b703a9569a612b42d12d3cd794e074ce1aa411ba35f4ee0cfcbfa98cd4928c52689697216992f5ee0aa1a9469babb38eb91096bd33413bba9ff512d9
|
7
|
+
data.tar.gz: c0a5918707d290cbed76057b860e67c49ba1e22dba7105bd54cf3a59d7a8e1d5ff629c6922409646dc67c594ce90da53518ef5a150dc208fa7929b28adb860f9
|
data/README.md
CHANGED
@@ -50,6 +50,11 @@ In your Rails app, in a rake task, model, background job, or where ever you like
|
|
50
50
|
attr_accessor :current_user
|
51
51
|
helper_method :current_user
|
52
52
|
end
|
53
|
+
|
54
|
+
# If you define custom RenderingController, don't forget to override this method
|
55
|
+
def rendering_controller
|
56
|
+
@rendering_controller ||= self.class.const_get("RenderingController").new
|
57
|
+
end
|
53
58
|
end
|
54
59
|
```
|
55
60
|
|
@@ -25,7 +25,9 @@ module RenderAnywhere
|
|
25
25
|
self.class.send :include, Rails.application.routes.url_helpers
|
26
26
|
|
27
27
|
# this is you normal rails application helper
|
28
|
-
|
28
|
+
if defined?(ApplicationHelper)
|
29
|
+
self.class.send :helper, ApplicationHelper
|
30
|
+
end
|
29
31
|
|
30
32
|
lookup_context.view_paths = ApplicationController.view_paths
|
31
33
|
config.javascripts_dir = Rails.root.join('public', 'javascripts')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: render_anywhere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Melia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|