FooBarWidget/default_value_for

STI bug

dsmalko opened this issue · 2 comments

class Document < ActiveRecord::Base
  default_value_for :active, true
end

class Invoice < Document
  default_value_for :currency, 'usd'
end

Invoice.new.save doesn't save 'active' attribute to database. Removing default_value_for from Invoice helps.

Looks like the same as #37?

Right.