Skip to content

Commit a0e69e1

Browse files
committed
Merge pull request jbox-web#111 from lutechspa/master
Oracle support?
2 parents 258f4d4 + 4c30145 commit a0e69e1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/ajax-datatables-rails/base.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ def aggregate_query
147147

148148
def typecast
149149
case config.db_adapter
150+
when :oracle then 'VARCHAR2(4000)'
150151
when :pg then 'VARCHAR'
151152
when :mysql2 then 'CHAR'
152153
when :sqlite3 then 'TEXT'

lib/generators/datatable/templates/ajax_datatables_rails_config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
AjaxDatatablesRails.configure do |config|
2-
# available options for db_adapter are: :pg, :mysql2, :sqlite3
3-
# config.db_adapter = :pg
2+
# available options for db_adapter are: :oracle, :pg, :mysql2, :sqlite3
3+
# config.db_adapter = :oracle
44

55
# available options for paginator are: :simple_paginator, :kaminari, :will_paginate
66
# config.paginator = :simple_paginator

0 commit comments

Comments
 (0)