app/models/dorsale/expense_gun/expense.rb in dorsale-2.3.5 vs app/models/dorsale/expense_gun/expense.rb in dorsale-2.4.0

- old
+ new

@@ -4,9 +4,14 @@ self.table_name = "dorsale_expense_gun_expenses" include AASM has_many :expense_lines, inverse_of: :expense, dependent: :destroy, class_name: ::Dorsale::ExpenseGun::ExpenseLine + has_many :attachments, + :as => :attachable, + :dependent => :destroy, + :class_name => ::Dorsale::Alexandrie::Attachment + validates :name, presence: true validates :date, presence: true def initialize(*args) super \ No newline at end of file