mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-24 23:06:42 +00:00
use generated_methods method rather ivar
This commit is contained in:
parent
9c5db44500
commit
c580c3e682
@ -59,7 +59,8 @@ module ValidatesTimeliness
|
|||||||
end
|
end
|
||||||
|
|
||||||
define_attribute_methods_without_timeliness
|
define_attribute_methods_without_timeliness
|
||||||
@generated_methods += timeliness_methods
|
# add generated methods which is a Set object hence no += method
|
||||||
|
timeliness_methods.each {|attr| generated_methods << attr }
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user