From 2a9e8dca73251bc198428f7749d52293c53476b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Tue, 9 Feb 2010 00:26:26 +0100 Subject: [PATCH] Allow authenticatable to used in change_table statements --- CHANGELOG.rdoc | 1 + lib/devise/orm/active_record.rb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index f5e1aab7..82da4797 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -5,6 +5,7 @@ * Added Registerable * Added Http Basic Authentication support * Allow scoped_views to be customized per controller/mailer class + * [#99] Allow authenticatable to used in change_table statements == 0.9.2 diff --git a/lib/devise/orm/active_record.rb b/lib/devise/orm/active_record.rb index 4cda6f8a..4181b0d9 100644 --- a/lib/devise/orm/active_record.rb +++ b/lib/devise/orm/active_record.rb @@ -36,5 +36,6 @@ end if defined?(ActiveRecord) ActiveRecord::Base.extend Devise::Models + ActiveRecord::ConnectionAdapters::Table.send :include, Devise::Orm::ActiveRecord ActiveRecord::ConnectionAdapters::TableDefinition.send :include, Devise::Orm::ActiveRecord -end +end \ No newline at end of file