instance method changes_from_zero_to_string?

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v3.2.22.5 Private

Signature

changes_from_zero_to_string?(old, value)

No documentation comment.

Parameters

old req
value req
Source
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 105
      def changes_from_zero_to_string?(old, value)
        # For columns with old 0 and value non-empty string
        old == 0 && value.is_a?(String) && value.present? && value != '0'
      end

Defined in activerecord/lib/active_record/attribute_methods/dirty.rb line 105 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::AttributeMethods::Dirty

Type at least 2 characters to search.

↑↓ navigate · open · esc close