-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tweak ajax datatable rails to resolve an error caused by not being ab…
…le to identify the current database adapter.
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,9 @@ | |
role :app, %w([email protected]) | ||
role :web, %w([email protected]) | ||
role :db, %w([email protected]) | ||
role :app, %w([email protected]) | ||
role :web, %w([email protected]) | ||
role :db, %w([email protected]) | ||
# role :app, %w([email protected]) | ||
# role :web, %w([email protected]) | ||
# role :db, %w([email protected]) | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
AjaxDatatablesRails.configure do |config| | ||
# available options for db_adapter are: :pg, :mysql, :mysql2, :sqlite, :sqlite3 | ||
# config.db_adapter = :mysql2 | ||
|
||
# Or you can use your rails environment adapter if you want a generic dev and production | ||
config.db_adapter = Rails.configuration.database_configuration[Rails.env]['adapter'].to_sym | ||
|
||
# available options for orm are: :active_record, :mongoid | ||
# config.orm = :active_record | ||
end |