Class: ActiveRecord::Base

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.sunstone?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'ext/active_record/base.rb', line 3

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

Instance Method Details

#sunstone?Boolean

Returns:

  • (Boolean)


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

def sunstone?
  self.class.sunstone?
end