rubycentral/cfp-app

View on GitHub
app/helpers/program_session_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ProgramSessionHelper
  def session_states_collection
    ProgramSession::STATES.map { |state| [state.titleize, state] }
  end

  def speakers_emails(session)
    session.speakers.map{ |speaker| speaker.email }
  end
end