mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-12 23:09:03 +01:00
10 lines
163 B
Ruby
10 lines
163 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module LabelI18nConcern
|
||
|
extend ActiveSupport::Concern
|
||
|
|
||
|
def label
|
||
|
super.present? ? super : I18n.t(label_i18n_path)
|
||
|
end
|
||
|
end
|