move summarized_cost_entries to helper module

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@510 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent cd6593f12a
commit 596341d5ca
  1. 2
      app/models/cost_entry.rb

@ -10,7 +10,7 @@ class CostEntry < ActiveRecord::Base
attr_protected :project_id, :costs, :rate_id attr_protected :project_id, :costs, :rate_id
validates_presence_of :project_id, :issue_id, :user_id, :cost_type_id, :units, :spent_on validates_presence_of :project_id, :user_id, :cost_type_id, :units, :spent_on
validates_numericality_of :units, :allow_nil => false, :message => :activerecord_error_invalid validates_numericality_of :units, :allow_nil => false, :message => :activerecord_error_invalid
validates_length_of :comments, :maximum => 255, :allow_nil => true validates_length_of :comments, :maximum => 255, :allow_nil => true

Loading…
Cancel
Save