Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove session_table_name method because this is global and used only…

… once.
  • Loading branch information...
commit 09bb777cb17cd2cee10698346edb9bc0292a0dbe 1 parent 20e8344
@kennyj authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 activerecord/lib/active_record/railties/databases.rake
View
6 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']
Please sign in to comment.
Something went wrong with that request. Please try again.