Methods

Instance Public methods

filter_attributes()

Returns columns which shouldn’t be exposed while calling #inspect.

📝 Source code
# File activerecord/lib/active_record/core.rb, line 306
      def filter_attributes
        if @filter_attributes.nil?
          superclass.filter_attributes
        else
          @filter_attributes
        end
      end
🔎 See on GitHub

filter_attributes=(filter_attributes)

Specifies columns which shouldn’t be exposed while calling #inspect.

📝 Source code
# File activerecord/lib/active_record/core.rb, line 315
      def filter_attributes=(filter_attributes)
        @inspection_filter = nil
        @filter_attributes = filter_attributes
      end
🔎 See on GitHub