railhead_preheat 0.0.5 → 0.0.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 261c83bf08450d869673f1d1af1249542f2d4b02
4
- data.tar.gz: 4f5a7446ca5b2a827274b7d1d9cb633fa61794b8
3
+ metadata.gz: 389a78f09ddc8ad554b8de7931bab192c529382d
4
+ data.tar.gz: bc634cafefd67cf26da9c39da45bed7e50bbe9e5
5
5
  SHA512:
6
- metadata.gz: 7d9c9977880b203b82fdd27047fe6050474c7a00cf2779a2a051ee247b881b3acaa0805a9d2e305005c6d71d23a80add2df5da178fa99857a1c36ccc2e919f8f
7
- data.tar.gz: 99209a1e82b6899c1fdad1c5218a98d249cb26cb4c6ebffaec037cca4f7141b408298f070001c167154a5ac4174084d7d709bd0380d7f6c4fdc63f6e4be3652e
6
+ metadata.gz: 53af5fb3e0e52cd375c5686c6f62c3cdffd635dcdac9f3fe28c624c5afc43ef623808879e595dbe005fc67c606fac593df3ead9cfb921c955edb66787efe4ae7
7
+ data.tar.gz: 21eaa656451133e545a605ec3ce062446abfa888d3adbc59473ff1022d999b96c52177962737d330e4d169ac3da3da595e0f71fec8c3b17027add5bda1a86fcc
@@ -17,6 +17,7 @@ end
17
17
  module RailheadPreheat
18
18
 
19
19
  def preheat(item = self)
20
+ item.reload if item.respond_to?(:reload)
20
21
  RailheadPreheatController.new.render_to_string(item)
21
22
  end
22
23
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "railhead_preheat"
3
- s.version = "0.0.5"
4
- s.date = "2016-08-12"
3
+ s.version = "0.0.6"
4
+ s.date = "2016-08-14"
5
5
  s.summary = "RailheadPreheat is a Ruby on Rails plugin that automatically caches partials from model."
6
6
  s.email = "bence.nagy@gmail.com"
7
7
  s.homepage = "http://github.com/nagybence/railhead_preheat"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railhead_preheat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bence Nagy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-12 00:00:00.000000000 Z
11
+ date: 2016-08-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: bence.nagy@gmail.com