Skip to content
Snippets Groups Projects
communication.rb 319 B
Newer Older
Arnaud Levy's avatar
Arnaud Levy committed
module Communication
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
    'communication_'
Arnaud Levy's avatar
Arnaud Levy committed
  end
Arnaud Levy's avatar
Arnaud Levy committed

  def self.parts
    [
      [Communication::Website, :admin_communication_websites_path],
      [Communication::Extranet, :admin_communication_extranets_path],
    ]
  end
Arnaud Levy's avatar
Arnaud Levy committed
end