about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/rabl_init.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/rabl_init.rb b/config/initializers/rabl_init.rb
index f11eb190d..d14f8c54e 100644
--- a/config/initializers/rabl_init.rb
+++ b/config/initializers/rabl_init.rb
@@ -1,3 +1,6 @@
 Rabl.configure do |config|
+  config.cache_all_output  = true
+  config.cache_sources     = !!Rails.env.production?
   config.include_json_root = false
+  config.view_paths        = [Rails.root.join('app/views')]
 end