mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 05:18:06 +01:00
20 lines
343 B
Ruby
20 lines
343 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module SystemHelpers
|
||
|
def admin_user
|
||
|
Fabricate(:user, role: UserRole.find_by(name: 'Admin'))
|
||
|
end
|
||
|
|
||
|
def submit_button
|
||
|
I18n.t('generic.save_changes')
|
||
|
end
|
||
|
|
||
|
def success_message
|
||
|
I18n.t('generic.changes_saved_msg')
|
||
|
end
|
||
|
|
||
|
def form_label(key)
|
||
|
I18n.t key, scope: 'simple_form.labels'
|
||
|
end
|
||
|
end
|