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 Models::Schedulable

Models::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 Models::Schedulable

config

Methods included from Models::AfterCommittable

#after_commit

Methods included from Models::EventPublishable

#publish_event

Class Method Details

.options_for_selectObject



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

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

Instance Method Details

#to_sObject



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

def to_s
  "#{id} V"
end