fixed error with ascii error for dashboard
This commit is contained in:
parent
020e1a8eee
commit
3abd977822
6 changed files with 24 additions and 6 deletions
|
@ -10,6 +10,11 @@ class Issue < ActiveRecord::Base
|
|||
validates_presence_of :assignee_id
|
||||
validates_presence_of :author_id
|
||||
|
||||
delegate :name,
|
||||
:email,
|
||||
:to => :author,
|
||||
:prefix => true
|
||||
|
||||
validates :title,
|
||||
:presence => true,
|
||||
:length => { :within => 0..255 }
|
||||
|
|
|
@ -7,6 +7,11 @@ class Note < ActiveRecord::Base
|
|||
belongs_to :author,
|
||||
:class_name => "User"
|
||||
|
||||
delegate :name,
|
||||
:email,
|
||||
:to => :author,
|
||||
:prefix => true
|
||||
|
||||
attr_protected :author, :author_id
|
||||
|
||||
validates_presence_of :project
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue