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

Has many collapse

Class Method Summary collapse

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Models::EventPublishable

#publish_event

Class Method Details

.select_optionsObject



19
20
21
# File 'app/models/clifton_strength.rb', line 19

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

Instance Method Details

#employees_themesActiveRecord::Relation<EmployeesTheme>

Returns:

  • (ActiveRecord::Relation<EmployeesTheme>)

See Also:



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

has_many :employees_themes