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 108  
109 109 # Your secret key for verifying cookie session data integrity.
110 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 112 # no regular words or you'll be exposed to dictionary attacks.
113 113 config.secret_token = noosfero_session_secret
114 114 config.action_dispatch.session = {
... ...
lib/noosfero/plugin.rb
... ... @@ -71,7 +71,7 @@ class Noosfero::Plugin
71 71 end
72 72  
73 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 75 end
76 76 end
77 77  
... ...