From 56b1ab7e4cf8fc917268a00fdde7b121596a131f Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Wed, 10 Sep 2014 13:57:08 -0300 Subject: [PATCH] Fix prepend of plugins' view paths --- config/application.rb | 2 +- lib/noosfero/plugin.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/application.rb b/config/application.rb index 332a598..b775262 100644 --- a/config/application.rb +++ b/config/application.rb @@ -108,7 +108,7 @@ module Noosfero # Your secret key for verifying cookie session data integrity. # If you change this key, all old sessions will become invalid! - # Make sure the secret is at least 30 characters and all random, + # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. config.secret_token = noosfero_session_secret config.action_dispatch.session = { diff --git a/lib/noosfero/plugin.rb b/lib/noosfero/plugin.rb index 78f8877..3bc34e9 100644 --- a/lib/noosfero/plugin.rb +++ b/lib/noosfero/plugin.rb @@ -71,7 +71,7 @@ class Noosfero::Plugin end # add view path - ActionController::Base.view_paths.unshift(File.join(dir, 'views')) + config.paths['app/views'].unshift File.join(dir, 'views') end end -- libgit2 0.21.2