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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fc511f1345c16b34abfced3bb7464dc3d99a7e3
4
- data.tar.gz: d9443fec7d7b0efde78c1d3f73237b731c12b178
3
+ metadata.gz: a9425e52660e1db34fe01ee67f2a639e36706b77
4
+ data.tar.gz: e414529b8034dc9361c992d49aac8c301f133849
5
5
  SHA512:
6
- metadata.gz: a300e7fca51c72bab15e45f525d3cc0bbb43309a7d6542ca1b3e8762e0d0bc0803f275a77b064ea10de6d353b99763f2d44db8ba4c5c062277f8ef46e0bdb5f7
7
- data.tar.gz: b23cd116f132cdd50e0a483dbe236a87a814fce80f35ef9cae81901ae49ed8d9e4f9f611b29b687ef076d9987aaa71e3835eb910c944617ae35c53424a071986
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
- self.class.send :helper, ApplicationHelper
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')
@@ -1,3 +1,3 @@
1
1
  module RenderAnywhere
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
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.10
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: 2014-11-19 00:00:00.000000000 Z
11
+ date: 2015-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails