Spec-Zone.ru › Ruby on Rails 8.1

module ActiveRecord::Core::ClassMethods

Общедоступные методы экземпляра

filter_attributes () Показать исходный код
# File activerecord/lib/active_record/core.rb, line 348
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 357
def filter_attributes=(filter_attributes)
  @inspection_filter = nil
  @filter_attributes = filter_attributes

  FilterAttributeHandler.sensitive_attribute_was_declared(self, filter_attributes)
end

Задаёт столбцы, которые не следует показывать при вызове inspect.

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

Spec-Zone.ru

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