Spec-Zone.ru › Ruby on Rails 7.2

модуль ActiveRecord::Core::ClassMethods

Публичные методы экземпляров

filter_attributes() Показать исходный код
# File activerecord/lib/active_record/core.rb, line 325
def filter_attributes
  if @filter_attributes.nil?
    superclass.filter_attributes
  else
    @filter_attributes
  end
end

Возвращает столбцы, которые не должны быть показаны при вызове #inspect.

filter_attributes=(filter_attributes) Показать исходный код
# File activerecord/lib/active_record/core.rb, line 334
def filter_attributes=(filter_attributes)
  @inspection_filter = nil
  @filter_attributes = filter_attributes
end

Указывает столбцы, которые не должны быть показаны при вызове #inspect.

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API