Sha256: e81be6d0afcda2137ff81560c95631b6e75584065cb45d4a530aa86f4c9e0b07
Contents?: true
Size: 447 Bytes
Versions: 8
Compression:
Stored size: 447 Bytes
Contents
# Filters added to this controller apply to all controllers in the application. # Likewise, all the methods added will be available for all controllers. class ApplicationController < ActionController::Base protect_from_forgery before_action :current_user, unless: :devise_controller? before_action :authenticate_user!, if: :devise_controller? respond_to(*Mime::SET.map(&:to_sym)) devise_group :commenter, contains: [:user, :admin] end
Version data entries
8 entries across 8 versions & 4 rubygems