mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 07:16:41 +00:00
The ActiveRecord extension now returns the original return value for .define_attribute_methods
This helps other extensions, like PermalinkFu, which depend on the return value
This commit is contained in:
committed by
Adam Meehan
parent
20549c7acd
commit
2702ec3266
@@ -119,4 +119,10 @@ describe ValidatesTimeliness, 'ActiveRecord' do
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
context "define_attribute_methods" do
|
||||
it "returns a falsy value if the attribute methods have already been generated" do
|
||||
Employee.define_attribute_methods.should be_false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user