diff options
author | kennyj <kennyj@gmail.com> | 2012-06-26 03:01:48 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-06-26 04:06:45 +0900 |
commit | 09bb777cb17cd2cee10698346edb9bc0292a0dbe (patch) | |
tree | adea9c1ddcf6fcead5ffb3a91eb2d4738486e908 /activerecord/lib/active_record/railties | |
parent | 20e834483b6b3ac51c9b867e659fc4718ab9161f (diff) | |
download | rails-09bb777cb17cd2cee10698346edb9bc0292a0dbe.tar.gz rails-09bb777cb17cd2cee10698346edb9bc0292a0dbe.tar.bz2 rails-09bb777cb17cd2cee10698346edb9bc0292a0dbe.zip |
Remove session_table_name method because this is global and used only once.
Diffstat (limited to 'activerecord/lib/active_record/railties')
-rw-r--r-- | activerecord/lib/active_record/railties/databases.rake | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake index f25930e161..d31ab054e6 100644 --- a/activerecord/lib/active_record/railties/databases.rake +++ b/activerecord/lib/active_record/railties/databases.rake @@ -415,7 +415,7 @@ db_namespace = namespace :db do # desc "Clear the sessions table" task :clear => [:environment, :load_config] do - ActiveRecord::Base.connection.execute "DELETE FROM #{session_table_name}" + ActiveRecord::Base.connection.execute "DELETE FROM #{ActiveRecord::SessionStore::Session.table_name}" end end end @@ -450,10 +450,6 @@ end task 'test:prepare' => 'db:test:prepare' -def session_table_name - ActiveRecord::SessionStore::Session.table_name -end - def set_firebird_env(config) ENV['ISC_USER'] = config['username'].to_s if config['username'] ENV['ISC_PASSWORD'] = config['password'].to_s if config['password'] |