Sha256: 5fd1553d11aff1f53f68bd08001bae55b9dab027a5edcde157c7d73492823394
Contents?: true
Size: 451 Bytes
Versions: 1
Compression:
Stored size: 451 Bytes
Contents
module Protector::InheritedResources module ClassMethods def protector_subject(subject) subject = false if subject.nil? @protector_subject = subject end def effective_protector_subject return @protector_subject unless @protector_subject.nil? if superclass.respond_to? :effective_protector_subject superclass.effective_protector_subject else :current_user end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
protector-inherited_resources-0.0.1 | lib/protector/inherited_resources/class_methods.rb |