Module: Shared::Protocols

Extended by:
ActiveSupport::Concern
Included in:
Image
Defined in:
app/models/concerns/shared/protocols.rb

Overview

Shared code for attaching protocols to data objects.

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) has_protocols?

Returns:

  • (Boolean)


16
17
18
# File 'app/models/concerns/shared/protocols.rb', line 16

def has_protocols?
  self.protocols.size > 0
end