mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 17:28:50 +01:00
consolidate validates_presence_of validations
This commit is contained in:
parent
a201ecf737
commit
45df84b739
1 changed files with 1 additions and 5 deletions
|
|
@ -24,11 +24,7 @@ class RecurringTodo < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
validates_presence_of :description
|
||||
validates_presence_of :recurring_period
|
||||
validates_presence_of :target
|
||||
validates_presence_of :ends_on
|
||||
validates_presence_of :context
|
||||
validates_presence_of :description, :recurring_period, :target, :ends_on, :context
|
||||
|
||||
validates_length_of :description, :maximum => 100
|
||||
validates_length_of :notes, :maximum => 60000, :allow_nil => true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue