method

non_zero?

rails latest stable - Class: ActiveRecord::AttributeMethods::Dirty

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.1.8) is shown here.

non_zero?(value)
private

No documentation available.

# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 122
      def non_zero?(value)
        value !~ /\A0+(\.0+)?\z/
      end