Method: ActiveSupport::TimeWithZone#respond_to_missing?

Defined in:
lib/active_support/time_with_zone.rb

#respond_to_missing?(sym, include_priv) ⇒ Boolean

Ensure proxy class responds to all methods that underlying time instance responds to.

Returns:

  • (Boolean)


543
544
545
546
# File 'lib/active_support/time_with_zone.rb', line 543

def respond_to_missing?(sym, include_priv)
  return false if sym.to_sym == :acts_like_date?
  time.respond_to?(sym, include_priv)
end