test/dummy/config/initializers/secret_token.rb in csv_rails-0.6.1 vs test/dummy/config/initializers/secret_token.rb in csv_rails-0.7.0

- old
+ new

@@ -2,6 +2,11 @@ # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. -Dummy::Application.config.secret_token = '6f2d28438a58023c9b1a016e1d4c83bf5afdcdc92e1e2467517ad9bf2844152ebc4ecce1fd37bb32be7760e1a66efb48db0adcebb3f22594783ec79659147fb1' +setter = if Rails::VERSION::MAJOR > 3 + :secret_key_base= + else + :secret_token= + end +Dummy::Application.config.send(setter, '6f2d28438a58023c9b1a016e1d4c83bf5afdcdc92e1e2467517ad9bf2844152ebc4ecce1fd37bb32be7760e1a66efb48db0adcebb3f22594783ec79659147fb1')