This doesn't feel nice, but I really didn't want to put model specific methods inside the element classes. Tried to put this code in an initializer but it complains about acts_as_journalized, I'm guessing something to do with the ordering of the includes.pull/6827/head
parent
349a938167
commit
da9f03be30
@ -0,0 +1,5 @@ |
||||
module WorkPackageDisplay |
||||
def display_id |
||||
"#{(kind.is_standard) ? "" : "#{kind.name}"} ##{id}" |
||||
end |
||||
end |
Loading…
Reference in new issue