diff options
author | Jose Corcuera <jzcorcuera@gmail.com> | 2015-11-26 10:16:50 -0500 |
---|---|---|
committer | Jose Corcuera <jzcorcuera@gmail.com> | 2015-11-26 10:16:50 -0500 |
commit | b9df1a63550c78396d43b661bd24d2745604f6fc (patch) | |
tree | 39fc0be59dc254abc7c4838725f6e8c650d4e6da /app/models/milestone.rb | |
parent | 68a4533818b96c405e657e8c1d49c72e755de8db (diff) | |
download | gitlab-ce-b9df1a63550c78396d43b661bd24d2745604f6fc.tar.gz |
Strip attributes for Milestone and Issuable. #3428
Diffstat (limited to 'app/models/milestone.rb')
-rw-r--r-- | app/models/milestone.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/milestone.rb b/app/models/milestone.rb index 2ff16e2825c..c2642b75b8a 100644 --- a/app/models/milestone.rb +++ b/app/models/milestone.rb @@ -22,6 +22,7 @@ class Milestone < ActiveRecord::Base include InternalId include Sortable + include StripAttribute belongs_to :project has_many :issues @@ -35,6 +36,8 @@ class Milestone < ActiveRecord::Base validates :title, presence: true validates :project, presence: true + strip_attributes :title + state_machine :state, initial: :active do event :close do transition active: :closed |