method
attributes_with_index
v3.2.8 -
Show latest stable
- Class:
ActiveRecord::Generators::ModelGenerator
attributes_with_index()public
No documentation available.
# File activerecord/lib/rails/generators/active_record/model/model_generator.rb, line 29
def attributes_with_index
attributes.select { |a| a.has_index? || (a.reference? && options[:indexes]) }
end