Correct name of ActiveRecord
This commit is contained in:
parent
f973bee52b
commit
c38de8027f
6 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
if defined?(ActionRecord::ConnectionAdaptors::AbstractAdaptor)
|
||||
if defined?(ActiveRecord::ConnectionAdaptors::AbstractAdaptor)
|
||||
module ActiveRecord
|
||||
module ConnectionAdapters
|
||||
class AbstractAdapter
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
if defined?(ActionRecord::ConnectionAdaptors::PostgreSQLAdaptor)
|
||||
if defined?(ActiveRecord::ConnectionAdaptors::PostgreSQLAdaptor)
|
||||
module ActiveRecord
|
||||
module ConnectionAdapters
|
||||
class PostgreSQLAdapter
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
if defined?(ActionRecord::ConnectionAdaptors::QueryCache)
|
||||
if defined?(ActiveRecord::ConnectionAdaptors::QueryCache)
|
||||
module ActiveRecord
|
||||
module ConnectionAdapters
|
||||
module QueryCache
|
||||
|
|
2
vendor/plugins/deadlock_retry/init.rb
vendored
2
vendor/plugins/deadlock_retry/init.rb
vendored
|
@ -1,5 +1,5 @@
|
|||
require 'deadlock_retry'
|
||||
|
||||
if defined?(ActionRecord::Base)
|
||||
if defined?(ActiveRecord::Base)
|
||||
ActiveRecord::Base.send :include, DeadlockRetry
|
||||
end
|
||||
|
|
2
vendor/plugins/file_column/init.rb
vendored
2
vendor/plugins/file_column/init.rb
vendored
|
@ -8,7 +8,7 @@ require 'file_column_helper'
|
|||
require 'validations'
|
||||
require 'test_case'
|
||||
|
||||
if defined?(ActionRecord::Base)
|
||||
if defined?(ActiveRecord::Base)
|
||||
ActiveRecord::Base.send(:include, FileColumn)
|
||||
ActiveRecord::Base.send(:include, FileColumn::Validations)
|
||||
end
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
if defined?(ActionRecord::Base)
|
||||
if defined?(ActiveRecord::Base)
|
||||
require 'validates_email_format_of'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue