sitepress-rails 4.0.1 → 4.0.2

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
  SHA256:
3
- metadata.gz: a00950ec6c63d58590409b80083a13eb74b8b1d50fe631622e7a24feae72bcfd
4
- data.tar.gz: d73f2d86cb471ef9b48caf60266ff81a1a8e27497928a2c84aecffc257dcb682
3
+ metadata.gz: d982983be98080c0cfe1f61ab6664347e9ae387335222f751c04138b5cc3ba25
4
+ data.tar.gz: 63bd4f4ba8d058e07c0bceb90919180f41a5248c7ec9d318a1737a38b93f2b24
5
5
  SHA512:
6
- metadata.gz: ad0f8d998bf963874e26ee1ab1b0856253d59bc07cd6f21355de5f5dba2bf409119b0955847273283d711739cd9bf955a8b919d0c9dc2272fd2a702878c79fcd
7
- data.tar.gz: e5e1f24f9d9c58885338bdcf7726414d1a2482b6bd83c6c24e831959528cd6b95a1b23067d2b58685df98dac82c81fb33ceecffed8b18142ab7629cbd67e3d52
6
+ metadata.gz: a19381871e14383c5b65d87a3cec2ea99564b23fb148b1c4c0a8c5b11552f996804dab72b5203a88581c06a350a3d187a9cc4e696e280f87d1049034bae52796
7
+ data.tar.gz: 5fce88a50329238576a40cc21c796f3c873947be86d3e1ba536265075a0b9adb099fa0723dbff0efa5aa28c462a183e2e54f9f12b582ab342ad89a6400338be0
@@ -47,13 +47,11 @@ module Sitepress
47
47
  sitepress_configuration.parent_engine = app
48
48
  # Reloads entire site between requests for development environments
49
49
  sitepress_configuration.cache_resources = app.config.cache_classes
50
+ end
50
51
 
51
- # If this isn't within the `ActiveSupport.on_load(:action_view)` block, it won't load templates
52
- # like haml that register the template handler in the same type of block.
53
- ActiveSupport.on_load(:action_view) do
54
- # Set the templates extensions (e.g. erb, haml) so that Sitepress can better parse paths.
55
- Sitepress::Path.handler_extensions = ActionView::Template::Handlers.extensions
56
- end
52
+ config.after_initialize do
53
+ # Set the templates extensions (e.g. erb, haml) so that Sitepress can parse paths.
54
+ Sitepress::Path.handler_extensions = ActionView::Template::Handlers.extensions
57
55
  end
58
56
 
59
57
  private