Sha256: e8dfbf185a0d86f84510aebe92cc69e43a2cf76281afa323d67d68a92f91d8e4
Contents?: true
Size: 540 Bytes
Versions: 9
Compression:
Stored size: 540 Bytes
Contents
module Alchemy module Page::Users extend ActiveSupport::Concern # Returns the name of the creator of this page. def creator_name return I18n.t('unknown') if creator.nil? creator.name end # Returns the name of the last updater of this page. def updater_name return I18n.t('unknown') if updater.nil? updater.name end # Returns the name of the user currently editing this page. def locker_name return I18n.t('unknown') if locker.nil? locker.name end end end
Version data entries
9 entries across 9 versions & 1 rubygems