Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- ext/active_record/base.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.sunstone? ⇒ 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
7 8 9 |
# File 'ext/active_record/base.rb', line 7 def sunstone? self.class.sunstone? end |