Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
ext/active_record/base.rb

Overview

The last ref that this code was synced with Rails ref: 90a1eaa1b3

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.sunstone?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'ext/active_record/base.rb', line 8

def self.sunstone?
  connection_pool.db_config.adapter_class == ActiveRecord::ConnectionAdapters::SunstoneAPIAdapter
end

Instance Method Details

#sunstone?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'ext/active_record/base.rb', line 12

def sunstone?
  self.class.sunstone?
end