Class: Voltage

Inherits:
ApplicationRecord show all
Defined in:
app/models/voltage.rb

Overview

== Schema Information

Table name: voltages
Database name: primary

id :integer not null, primary key

Constant Summary

Constants included from Schedulable

Schedulable::SIMPLE_FORM_OPTIONS

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Schedulable

config

Methods included from Models::AfterCommittable

#after_commit

Methods included from Models::EventPublishable

#publish_event

Class Method Details

.options_for_selectObject



10
11
12
# File 'app/models/voltage.rb', line 10

def self.options_for_select
  order(:id).ids
end

Instance Method Details

#to_sObject



14
15
16
# File 'app/models/voltage.rb', line 14

def to_s
  "#{id} V"
end