mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Allow authenticatable to used in change_table statements
This commit is contained in:
parent
1b6f1b9752
commit
2a9e8dca73
2 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
* Added Registerable
|
* Added Registerable
|
||||||
* Added Http Basic Authentication support
|
* Added Http Basic Authentication support
|
||||||
* Allow scoped_views to be customized per controller/mailer class
|
* Allow scoped_views to be customized per controller/mailer class
|
||||||
|
* [#99] Allow authenticatable to used in change_table statements
|
||||||
|
|
||||||
== 0.9.2
|
== 0.9.2
|
||||||
|
|
||||||
|
|
|
@ -36,5 +36,6 @@ end
|
||||||
|
|
||||||
if defined?(ActiveRecord)
|
if defined?(ActiveRecord)
|
||||||
ActiveRecord::Base.extend Devise::Models
|
ActiveRecord::Base.extend Devise::Models
|
||||||
|
ActiveRecord::ConnectionAdapters::Table.send :include, Devise::Orm::ActiveRecord
|
||||||
ActiveRecord::ConnectionAdapters::TableDefinition.send :include, Devise::Orm::ActiveRecord
|
ActiveRecord::ConnectionAdapters::TableDefinition.send :include, Devise::Orm::ActiveRecord
|
||||||
end
|
end
|
Loading…
Reference in a new issue