Module: ActiveRecordTextColumns
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_record_text_columns.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.text_column_names_by_model ⇒ Object
Get a list of text_column_names for every model.
Class Method Details
.text_column_names_by_model ⇒ Object
Get a list of text_column_names for every model
22 23 24 25 26 27 |
# File 'lib/active_record_text_columns.rb', line 22 def self.text_column_names_by_model ::ActiveRecord::Base.descendants.each_with_object({}) do |model, hash| next if model.abstract_class? hash[model.name] = model.text_column_names end end |