Commit 5fd99be5c01f38a7e0d1239e211a800e6625a210

Authored by Antonio Terceiro
2 parents 3e384886 56b1ab7e

Merge branch 'ai3300' into 'master'

Ai3300: In rails3, plugins' paths are being appended

See merge request !317
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  
... ...