Module: Fusuma::Plugin::Touchscreen::DevicePatch::ClassMethods

Included in:
Fusuma::Plugin::Touchscreen::DevicePatch
Defined in:
lib/fusuma/plugin/devices/touchscreen_device.rb

Instance Method Summary collapse

Instance Method Details

#allObject



8
9
10
11
12
13
14
# File 'lib/fusuma/plugin/devices/touchscreen_device.rb', line 8

def all
  @all ||= super.tap do |devices|
    devices.each do |device|
      device.assign_attributes(available: true) if device.capabilities.match?(/touch/)
    end
  end
end