mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
use generated_methods method rather ivar
This commit is contained in:
parent
9c5db44500
commit
c580c3e682
@ -59,7 +59,8 @@ module ValidatesTimeliness
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user