mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-23 06:16:44 +00:00
Remove InstanceMethods module when using AS::Concern, as it was deprecated in 3.2
This commit is contained in:
parent
907fd3e439
commit
7a784a6c54
@ -65,7 +65,6 @@ module ValidatesTimeliness
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
module InstanceMethods
|
|
||||||
def _timeliness_raw_value_for(attr_name)
|
def _timeliness_raw_value_for(attr_name)
|
||||||
@timeliness_cache && @timeliness_cache[attr_name.to_s]
|
@timeliness_cache && @timeliness_cache[attr_name.to_s]
|
||||||
end
|
end
|
||||||
@ -74,6 +73,4 @@ module ValidatesTimeliness
|
|||||||
@timeliness_cache = {}
|
@timeliness_cache = {}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|||||||
@ -33,7 +33,6 @@ module ValidatesTimeliness
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
module InstanceMethods
|
|
||||||
def datetime_selector_with_timeliness(*args)
|
def datetime_selector_with_timeliness(*args)
|
||||||
@timeliness_date_or_time_tag = true
|
@timeliness_date_or_time_tag = true
|
||||||
datetime_selector_without_timeliness(*args)
|
datetime_selector_without_timeliness(*args)
|
||||||
@ -58,7 +57,5 @@ module ValidatesTimeliness
|
|||||||
TimelinessDateTime.new(*values)
|
TimelinessDateTime.new(*values)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -30,14 +30,11 @@ module ValidatesTimeliness
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
module InstanceMethods
|
|
||||||
def reload(*args)
|
def reload(*args)
|
||||||
_clear_timeliness_cache
|
_clear_timeliness_cache
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user