app/models/dorsale/expense_gun/expense.rb in dorsale-2.4.0 vs app/models/dorsale/expense_gun/expense.rb in dorsale-2.4.1
- old
+ new
@@ -9,9 +9,13 @@
has_many :attachments,
:as => :attachable,
:dependent => :destroy,
:class_name => ::Dorsale::Alexandrie::Attachment
+
+ belongs_to :user, class_name: User
+ validates :user, presence: true
+
validates :name, presence: true
validates :date, presence: true
def initialize(*args)
super
\ No newline at end of file