sahilbathlavinsol/rails — pull request #1 by sahilbathlavinsol (2014-09-17 20:09:08+00:00)
Title: Make year optional(mm/dd) while typecasting activerecord date type

This will make the year option while initiating any active record object with date type just like it is there for datetime.

i.e User.new(created_at: '07/15')

or user = User.new
user.assign_attributes(created_at: '07/15')