mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-11 22:24:21 +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
|