method

new_date

rails latest stable - Class: ActiveRecord::ConnectionAdapters::Column

Method deprecated or moved

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

new_date(year, mon, mday)
protected

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 179
          def new_date(year, mon, mday)
            if year && year != 0
              Date.new(year, mon, mday) rescue nil
            end
          end