Sha256: 654fe8822b16dbbb824eedb33a8583737bca6f4a114a31afd30cf603b75f7de1
Contents?: true
Size: 593 Bytes
Versions: 31
Compression:
Stored size: 593 Bytes
Contents
module Recruiter module FormHelper def options_for_states options_for(State) end def options_for_available_states options_for(State.with_open_jobs) end def options_for_available_cities(state_id) options_for City.with_open_jobs.where(state_id: state_id) end def options_for_cities(state_id = nil) options_for City.where(state_id: state_id) end def options_for(scope) scope.order(:name).select(:name, :id).map do |row| [row.name, row.id] end end def tags Tag.order(:sequence) end end end
Version data entries
31 entries across 31 versions & 1 rubygems