Merge pull request #128 from monkbroc/patch-1

Generate attribute methods once instead of on each object creation
This commit is contained in:
Adam Meehan 2015-09-25 09:13:02 +10:00
commit 4d48c3578b

View File

@ -23,7 +23,9 @@ module ValidatesTimeliness
def define_attribute_methods
super.tap do |attribute_methods_generated|
return false if @timeliness_methods_generated
define_timeliness_methods true
@timeliness_methods_generated = true
end
end