aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/session_store.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/session_store.rb b/activerecord/lib/active_record/session_store.rb
index feb9e2e8f6..cc8d697dde 100644
--- a/activerecord/lib/active_record/session_store.rb
+++ b/activerecord/lib/active_record/session_store.rb
@@ -217,17 +217,17 @@ module ActiveRecord
end
def create_table!
- @@connection.execute <<-end_sql
+ connection.execute <<-end_sql
CREATE TABLE #{table_name} (
id INTEGER PRIMARY KEY,
- #{@@connection.quote_column_name(session_id_column)} TEXT UNIQUE,
- #{@@connection.quote_column_name(data_column)} TEXT
+ #{connection.quote_column_name(session_id_column)} TEXT UNIQUE,
+ #{connection.quote_column_name(data_column)} TEXT
)
end_sql
end
def drop_table!
- @@connection.execute "DROP TABLE #{table_name}"
+ connection.execute "DROP TABLE #{table_name}"
end
end