bievre_app/app/models/dynamic_content.rb
Caroline Girard dee35396f0 initial
2018-09-07 11:04:43 +02:00

26 lines
633 B
Ruby

# -*- encoding : utf-8 -*-
class DynamicContent < ActiveRecord::Base
has_one :portlet, :as => :content, :dependent => :destroy
belongs_to :item
NAMES = {
"militer" => "Index militer",
"detenus" => "Index détenus",
"index_label" => "Index Label",
"index_petitions" => "Index Pétitions",
"index_sponsorship" => "Index Parrainages",
"contact" => "Formulaire contact",
"contact_leg" => "Formulaire contact leg",
"contact_militer" => "Formulaire contact militer",
"plan" => "Plan du site",
"newsletter" => "Formulaire newsletter",
}
def self.picto
"cog"
end
end