Sha256: 224e95e178363a61b78dc897e9fc5122625641062571aeb8de402db3b7fc8759

Contents?: true

Size: 506 Bytes

Versions: 8

Compression:

Stored size: 506 Bytes

Contents

# pour avoir les méthodes d'authenfication proposées par l'ApplicationController
# ainsi que la gestion des sessions et notamment la méthode find_organism
class Adherent::ApplicationController < ApplicationController
  
  # met en forme une date au format dd-mmm-yyyy en retirant le point 
  # par exemple 13-nov-2013 (et non 13-nov.-2016), ceci pour pouvoir 
  # facilement inclure la date dans le nom d'un fichier
  def dashed_date(date)
    I18n.l(date, format:'%d-%b-%Y').gsub('.', '')
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
adherent-0.3.1 app/controllers/adherent/application_controller.rb
adherent-0.3.0 app/controllers/adherent/application_controller.rb
adherent-0.2.9 app/controllers/adherent/application_controller.rb
adherent-0.2.8 app/controllers/adherent/application_controller.rb
adherent-0.2.7 app/controllers/adherent/application_controller.rb
adherent-0.2.6 app/controllers/adherent/application_controller.rb
adherent-0.2.5 app/controllers/adherent/application_controller.rb
adherent-0.2.4 app/controllers/adherent/application_controller.rb