Fix load order issue for AR extension using Railite

This commit is contained in:
Adam Meehan
2012-06-23 18:58:01 +10:00
parent 8dd607975b
commit 8e08cbf6e4
2 changed files with 6 additions and 1 deletions

View File

@@ -58,6 +58,10 @@ module ValidatesTimeliness
# Setup method for plugin configuration
def self.setup
yield self
load_orms
end
def self.load_orms
extend_orms.each {|orm| require "validates_timeliness/orm/#{orm}" }
end
end