1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-11 22:24:21 +01:00
fab-manager/app/models/concerns/label_i18n_concern.rb

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