Class: NextSges::Administrator

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

Constant Summary collapse

INITIAL_LETTER =
"A"

Constants inherited from ApplicationRecord

NextSges::ApplicationRecord::CELL_REGEX, NextSges::ApplicationRecord::DEFAULT_IDENTIFICATION_ENUM, NextSges::ApplicationRecord::DEFAULT_STATUS_ENUM, NextSges::ApplicationRecord::MAIL_REGEX

Instance Method Summary collapse

Methods inherited from ApplicationRecord

#create_number, #create_number!, map_for_filter, map_for_select

Instance Method Details

#map_for_filter(map_method = :name) ⇒ Object



12
13
14
# File 'app/models/next_sges/administrator.rb', line 12

def map_for_filter(map_method = :name)
  map_for_select(map_method)
end

#map_for_select(map_method = :name) ⇒ Object



8
9
10
# File 'app/models/next_sges/administrator.rb', line 8

def map_for_select(map_method = :name)
  all.map {|f| [f.send(map_method), f.id]}
end