Commit 56b1ab7e4cf8fc917268a00fdde7b121596a131f

Authored by Braulio Bhavamitra
1 parent c29b0edc

Fix prepend of plugins' view paths

Showing 2 changed files with 2 additions and 2 deletions   Show diff stats
config/application.rb
@@ -108,7 +108,7 @@ module Noosfero @@ -108,7 +108,7 @@ module Noosfero
108 108
109 # Your secret key for verifying cookie session data integrity. 109 # Your secret key for verifying cookie session data integrity.
110 # If you change this key, all old sessions will become invalid! 110 # If you change this key, all old sessions will become invalid!
111 - # Make sure the secret is at least 30 characters and all random, 111 + # Make sure the secret is at least 30 characters and all random,
112 # no regular words or you'll be exposed to dictionary attacks. 112 # no regular words or you'll be exposed to dictionary attacks.
113 config.secret_token = noosfero_session_secret 113 config.secret_token = noosfero_session_secret
114 config.action_dispatch.session = { 114 config.action_dispatch.session = {
lib/noosfero/plugin.rb
@@ -71,7 +71,7 @@ class Noosfero::Plugin @@ -71,7 +71,7 @@ class Noosfero::Plugin
71 end 71 end
72 72
73 # add view path 73 # add view path
74 - ActionController::Base.view_paths.unshift(File.join(dir, 'views')) 74 + config.paths['app/views'].unshift File.join(dir, 'views')
75 end 75 end
76 end 76 end
77 77