Class: CanTango::Configuration::Models::ActiveRecord

Inherits:
Generic
  • Object
show all
Defined in:
lib/cantango/config/models/active_record.rb

Instance Method Summary collapse

Methods inherited from Generic

#available_models

Instance Method Details

#modelsObject



5
6
7
8
9
# File 'lib/cantango/config/models/active_record.rb', line 5

def models
  ::ActiveRecord::Base.descendants
rescue
  table_models
end