Sha256: 1a9339c1d0296607ebb408115b2b20aa8bf2e8ae2130f6358c65c42659ad6446
Contents?: true
Size: 372 Bytes
Versions: 4
Compression:
Stored size: 372 Bytes
Contents
class Admin::Appointments2Controller < ApplicationController layout 'admin' admin_assistant_for Appointment do |a| a.form.multi = true end protected def time_from_form(time) time['1-3i'] =~ /(\d{4})-(\d{2})-(\d{2})/ utc_args = [$1, $2, $3, time['4i'], time['5i']] Time.utc(*(utc_args.map(&:to_i))) unless utc_args.any?(&:blank?) end end
Version data entries
4 entries across 3 versions & 1 rubygems