Module: Capabilities

Extended by:
ActiveSupport::Concern
Included in:
User
Defined in:
app/models/capabilities.rb

Defined Under Namespace

Modules: Helpers Classes: Cacheable

Instance Method Summary collapse

Instance Method Details

#gear_sizesObject



9
10
11
# File 'app/models/capabilities.rb', line 9

def gear_sizes
  @gear_sizes ||= capabilities[:gear_sizes].map(&:to_sym)
end

#to_capabilitiesObject



13
14
15
# File 'app/models/capabilities.rb', line 13

def to_capabilities
  Capabilities::Cacheable.from(self)
end