Sha256: a8ee2b96e14a42069d9c7487e179bd6e18f86f05e73b3160f28d45a8a1326907
Contents?: true
Size: 483 Bytes
Versions: 8
Compression:
Stored size: 483 Bytes
Contents
module SchoolsHelper def school_selected_id(school, params) if school && !school.new_record? school.id elsif params[:user] and params[:user][:profile_attributes] and params[:user][:profile_attributes][:school_id] params[:user][:profile_attributes][:school_id] else '' end end def school_select_zipcode(school, params) if school && !school.new_record? school.zipcode else params[:school_zipcode] || '' end end end
Version data entries
8 entries across 8 versions & 1 rubygems