From b5f892bcdb275c38e444914d417494b6d5d06a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Tue, 20 Apr 2010 17:22:16 +0200 Subject: [PATCH] No need to check if AR is defined. --- lib/devise/orm/active_record.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/devise/orm/active_record.rb b/lib/devise/orm/active_record.rb index 19158ad9..4ffe1989 100644 --- a/lib/devise/orm/active_record.rb +++ b/lib/devise/orm/active_record.rb @@ -31,8 +31,6 @@ module Devise end end -if defined?(ActiveRecord) - ActiveRecord::Base.extend Devise::Models - ActiveRecord::ConnectionAdapters::Table.send :include, Devise::Orm::ActiveRecord::Schema - ActiveRecord::ConnectionAdapters::TableDefinition.send :include, Devise::Orm::ActiveRecord::Schema -end \ No newline at end of file +ActiveRecord::Base.extend Devise::Models +ActiveRecord::ConnectionAdapters::Table.send :include, Devise::Orm::ActiveRecord::Schema +ActiveRecord::ConnectionAdapters::TableDefinition.send :include, Devise::Orm::ActiveRecord::Schema \ No newline at end of file