mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-19 04:49:15 +00:00
Refacto edit method for content controller and enable custom user guide link
This commit is contained in:
11
app/models/preference_sections/user_guide_section.rb
Normal file
11
app/models/preference_sections/user_guide_section.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
module PreferenceSections
|
||||
class UserGuideSection
|
||||
def name
|
||||
I18n.t('admin.contents.edit.user_guide')
|
||||
end
|
||||
|
||||
def preferences
|
||||
[:user_guide_link]
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user