Method: Spi_settings#save_settings
- Defined in:
- lib/class/SPI/Spi_settings.rb
#save_settings ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/class/SPI/Spi_settings.rb', line 26 def save_settings if @chip_settings.nil? create else @chip_settings = Spi.find_by(spi_chip: @chip.chip_id) update end end |