Module: AttachmentAuthorization
- Defined in:
- app/models/concerns/attachment_authorization.rb
Instance Method Summary collapse
Instance Method Details
#authorize_blob?(object = nil) ⇒ Boolean
4 5 6 7 8 9 10 |
# File 'app/models/concerns/attachment_authorization.rb', line 4 def (object = nil) if record.respond_to?(override_authentication_name) record.try(override_authentication_name, object) else (object) end end |