Module: ValidatesTimeliness::AttributeMethods

Extended by:
ActiveSupport::Concern
Included in:
ActiveRecord::Base, Mongoid::Document
Defined in:
lib/validates_timeliness/attribute_methods.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#_clear_timeliness_cacheObject



91
92
93
# File 'lib/validates_timeliness/attribute_methods.rb', line 91

def _clear_timeliness_cache
  @timeliness_cache = {}
end

#_timeliness_raw_value_for(attr_name) ⇒ Object



87
88
89
# File 'lib/validates_timeliness/attribute_methods.rb', line 87

def _timeliness_raw_value_for(attr_name)
  @timeliness_cache && @timeliness_cache[attr_name]
end