sitepress-rails 4.0.0 → 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: a17a0f0ea047c6c5f3e1b3c001ba4860f13231540ca5689e8b9fdc34afa7a4a4
4
- data.tar.gz: 536afc263fe38705b55e92819448524a8e42f3e1a97155f0973c3b9ea2582d06
3
+ metadata.gz: d982983be98080c0cfe1f61ab6664347e9ae387335222f751c04138b5cc3ba25
4
+ data.tar.gz: 63bd4f4ba8d058e07c0bceb90919180f41a5248c7ec9d318a1737a38b93f2b24
5
5
  SHA512:
6
- metadata.gz: 8b5d4cd8724b6482f93450e181e86f08b44e576b01a7a49f037e897a5e106254e555f9a5ceebbac5d90461ac973bf1c1ff60d7712b6975a40d7a8fd14b90d074
7
- data.tar.gz: 7729dbd150d43d20529cf47edaf98d0e7e69f72879ee985c1f678b7b6280f44fa5ae505a72b028f0e6c91de1062a7bd2cf7fad79ab021f9180558b3a89513ea3
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