Sha256: 2993db152a3d1148b6f588fb7756818539951cbb74d145a02c1ebaeabe17e1c8
Contents?: true
Size: 560 Bytes
Versions: 8
Compression:
Stored size: 560 Bytes
Contents
module SocialStream module Controllers # Common methods added to ApplicationController module CancanDeviseIntegration extend ActiveSupport::Concern module InstanceMethods private # Redirect to login if the user is trying to access a protected resource # and she is not authenticated def rescue_from_access_denied(exception) if user_signed_in? raise exception else redirect_to new_user_session_path end end end end end end
Version data entries
8 entries across 8 versions & 2 rubygems