diff options
Diffstat (limited to 'app/models/board.rb')
-rw-r--r-- | app/models/board.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/board.rb b/app/models/board.rb index a57d101b30a..85fad762ebe 100644 --- a/app/models/board.rb +++ b/app/models/board.rb @@ -44,6 +44,14 @@ class Board < ApplicationRecord def scoped? false end + + def self.to_type + name.demodulize + end + + def to_type + self.class.to_type + end end Board.prepend_if_ee('EE::Board') |