Skip to content
Snippets Groups Projects
administration.rb 409 B
Newer Older
Arnaud Levy's avatar
Arnaud Levy committed
module Administration
Arnaud Levy's avatar
Arnaud Levy committed
  extend ActiveModel::Naming
  extend ActiveModel::Translation

  def self.table_name_prefix
Arnaud Levy's avatar
Arnaud Levy committed
    'administration_'
Arnaud Levy's avatar
Arnaud Levy committed
  end
Arnaud Levy's avatar
Arnaud Levy committed

  def self.parts
    [
      [University::Person::Alumnus, :admin_administration_alumni_path],
Arnaud Levy's avatar
Arnaud Levy committed
      [Administration::Location, :admin_administration_locations_path],
Arnaud Levy's avatar
Arnaud Levy committed
      [Administration::Qualiopi, :admin_administration_qualiopi_criterions_path],
    ]
  end
Arnaud Levy's avatar
Arnaud Levy committed
end