mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 07:16:41 +00:00
use generated_methods method rather ivar
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user