Skip to content

Commit 37261f0

Browse files
committed
Fix readme example.
1 parent fdb7cb0 commit 37261f0

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,19 +153,17 @@ We currently conform to an unpublished and non-standard AbstractAdapter interfac
153153

154154
```ruby
155155
module ActiveRecord
156-
class Base
157-
module ConnectionAdapters
158-
class SQLServerAdapter < AbstractAdapter
156+
module ConnectionAdapters
157+
class SQLServerAdapter < AbstractAdapter
159158

160-
def configure_connection
161-
do_execute "SET TEXTSIZE #{64.megabytes}"
162-
end
163-
164-
def configure_application_name
165-
"myapp_#{$$}_#{Thread.current.object_id}".to(29)
166-
end
159+
def configure_connection
160+
raw_connection_do "SET TEXTSIZE #{64.megabytes}"
161+
end
167162

163+
def configure_application_name
164+
"myapp_#{$$}_#{Thread.current.object_id}".to(29)
168165
end
166+
169167
end
170168
end
171169
end

0 commit comments

Comments
 (0)