aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/session_store.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-21 16:36:22 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-21 16:36:28 -0700
commitba0d2a9ce374df69647a8280459d59000ce43188 (patch)
tree177c99ff84a6659befdd3ae8226c16c32be0be27 /activerecord/lib/active_record/session_store.rb
parentbdbe390a98acbebcfd48dca28c79d3296c8d3981 (diff)
downloadrails-ba0d2a9ce374df69647a8280459d59000ce43188.tar.gz
rails-ba0d2a9ce374df69647a8280459d59000ce43188.tar.bz2
rails-ba0d2a9ce374df69647a8280459d59000ce43188.zip
starting sql bypass test, fixing create_table and drop_table!
Diffstat (limited to 'activerecord/lib/active_record/session_store.rb')
-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