Commit 1db5448f98069cd880a438ee75f80c623ddc7d49
1 parent
db1d8d6c
Exists in
staging
and in
42 other branches
ActionItem170: it seems that require 'app/models/profile' prevents the error whi…
…le loading the Person class. git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1444 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
7 additions
and
2 deletions
Show diff stats
config/environment.rb
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | #ENV['RAILS_ENV'] ||= 'production' | 5 | #ENV['RAILS_ENV'] ||= 'production' |
6 | 6 | ||
7 | # Specifies gem version of Rails to use when vendor/rails is not present | 7 | # Specifies gem version of Rails to use when vendor/rails is not present |
8 | -RAILS_GEM_VERSION = '1.1.6' | 8 | +RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION |
9 | 9 | ||
10 | # Bootstrap the Rails environment, frameworks, and default configuration | 10 | # Bootstrap the Rails environment, frameworks, and default configuration |
11 | require File.join(File.dirname(__FILE__), 'boot') | 11 | require File.join(File.dirname(__FILE__), 'boot') |
@@ -45,8 +45,12 @@ Rails::Initializer.run do |config| | @@ -45,8 +45,12 @@ Rails::Initializer.run do |config| | ||
45 | # Make Active Record use UTC-base instead of local time | 45 | # Make Active Record use UTC-base instead of local time |
46 | # config.active_record.default_timezone = :utc | 46 | # config.active_record.default_timezone = :utc |
47 | 47 | ||
48 | + # Your secret key for verifying cookie session data integrity. | ||
49 | + # If you change this key, all old sessions will become invalid! | ||
50 | + # Make sure the secret is at least 30 characters and all random, | ||
51 | + # no regular words or you'll be exposed to dictionary attacks. | ||
48 | config.action_controller.session = { | 52 | config.action_controller.session = { |
49 | - :session_key => '_tets_session', | 53 | + :session_key => '_noosfero_session', |
50 | :secret => '7372009258e02886ca36278257637a008959504400f6286cd09133f6e9131d23460dd77e289bf99b480a3b4d017be0578b59335ce6a1c74e3644e37514926009' | 54 | :secret => '7372009258e02886ca36278257637a008959504400f6286cd09133f6e9131d23460dd77e289bf99b480a3b4d017be0578b59335ce6a1c74e3644e37514926009' |
51 | } | 55 | } |
52 | 56 | ||
@@ -91,3 +95,4 @@ require 'acts_as_having_boxes' | @@ -91,3 +95,4 @@ require 'acts_as_having_boxes' | ||
91 | require 'acts_as_having_settings' | 95 | require 'acts_as_having_settings' |
92 | require 'hacked_after_create' | 96 | require 'hacked_after_create' |
93 | 97 | ||
98 | +require 'app/models/profile' |