instance method full_inspect

Ruby on Rails 7.2.3

Since v7.2.3

Available in: v7.2.3 v8.0.4 v8.1.2

Signature

full_inspect()

Returns all attributes of the record as a nicely formatted string, ignoring .attributes_for_inspect.

Post.first.full_inspect
#=> "#<Post id: 1, title: "Hello, World!", published_at: "2023-10-23 14:28:11 +0000">"
Source
# File activerecord/lib/active_record/core.rb, line 779
    def full_inspect
      inspect_with_attributes(all_attributes_for_inspect)
    end

Defined in activerecord/lib/active_record/core.rb line 779 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Core

Type at least 2 characters to search.

↑↓ navigate · open · esc close