Module: Devise::Orm

Defined in:
lib/devise/orm.rb

Overview

:nodoc:

Defined Under Namespace

Modules: DirtyTrackingMethods

Class Method Summary collapse

Class Method Details

.active_record?(model) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/devise/orm.rb', line 3

def self.active_record?(model)
  defined?(ActiveRecord) && model < ActiveRecord::Base
end