diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-09-09 11:21:23 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-09-09 11:26:30 +0200 |
commit | ae9412e857a78236b359eb1b636511d07fe45cf3 (patch) | |
tree | aa29021dfe5cdbaa3b3ea72f7c8e52922b5ce393 /activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb | |
parent | 2dbfd7783277936c71664365a01cc20b77d6326c (diff) | |
download | rails-ae9412e857a78236b359eb1b636511d07fe45cf3.tar.gz rails-ae9412e857a78236b359eb1b636511d07fe45cf3.tar.bz2 rails-ae9412e857a78236b359eb1b636511d07fe45cf3.zip |
introduce `connection.supports_views?` and basic view tests.
`AbstractAdapter#supports_views?` defaults to `false` so we have to turn it on
in adapter subclasses. Currently the flag only controls test execution.
/cc @yahonda
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb index 4481df974d..5eb9385a47 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb @@ -183,6 +183,10 @@ module ActiveRecord true end + def supports_views? + true + end + def active? @active != false end |