Class: CliftonStrength

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

Overview

== Schema Information

Table name: clifton_strengths
Database name: primary

id :integer not null, primary key
description :text not null
name :string(255) not null
youtube_id :string(30)

Indexes

index_clifton_strengths_on_name (name) UNIQUE

Constant Summary

Constants included from Schedulable

Schedulable::SIMPLE_FORM_OPTIONS

Class 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

.select_optionsObject



17
18
19
# File 'app/models/clifton_strength.rb', line 17

def self.select_options
  order(:name).map { |s| [s.name, s.id] }
end