stale_state() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/belongs_to_association.rb, line 166
        def stale_state
          foreign_key = reflection.foreign_key
          if foreign_key.is_a?(Array)
            attributes = foreign_key.map do |fk|
              owner._read_attribute(fk) { |n| owner.send(:missing_attribute, n, caller) }
            end
            attributes if attributes.any?
          else
            owner._read_attribute(foreign_key) { |n| owner.send(:missing_attribute, n, caller) }
          end
        end
Register or log in to add new notes.