Permalink
Browse files

Make config.devise available on config/application.rb

  • Loading branch information...
josevalim committed Mar 30, 2010
1 parent e04c5ba commit d7f614b726b4dd64c9d067b2c6fdf599abdbd598
Showing with 3 additions and 0 deletions.
  1. +1 −0 CHANGELOG.rdoc
  2. +2 −0 lib/devise/rails.rb
View
@@ -15,6 +15,7 @@
* Allow to specify haml in devise_views.
* Compatibility with Datamapper and Mongoid.
* Allow :unlock_strategy to be :none.
+ * Make config.devise available on config/application.rb.
* bug fix
* Do not allow unlockable strategies based on time to access a controller.
View
@@ -3,6 +3,8 @@
module Devise
class Engine < ::Rails::Engine
+ config.devise = Devise
+
initializer "devise.add_middleware" do |app|
app.config.middleware.use Warden::Manager do |config|
Devise.configure_warden(config)

5 comments on commit d7f614b

Hi .. I'm seeing the following error message caused by this commit:

/Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta/lib/rails/configuration.rb:73:in method_missing': undefined methoddevise=' for #Rails::Engine::Configuration:0x1020cac08 (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/devise-1.1.rc1/lib/devise/rails.rb:6
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:167:in require' from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:167:inrequire'
from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:537:in new_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:167:inrequire'
from /Library/Ruby/Gems/1.8/gems/devise-1.1.rc1/lib/devise.rb:249
from /Library/Ruby/Gems/1.8/gems/bundler-0.9.5/lib/bundler/runtime.rb:41:in require' from /Library/Ruby/Gems/1.8/gems/bundler-0.9.5/lib/bundler/runtime.rb:41:inrequire'
from /Library/Ruby/Gems/1.8/gems/bundler-0.9.5/lib/bundler/runtime.rb:36:in each' from /Library/Ruby/Gems/1.8/gems/bundler-0.9.5/lib/bundler/runtime.rb:36:inrequire'
from /Library/Ruby/Gems/1.8/gems/bundler-0.9.5/lib/bundler/runtime.rb:35:in each' from /Library/Ruby/Gems/1.8/gems/bundler-0.9.5/lib/bundler/runtime.rb:35:inrequire'
from /Library/Ruby/Gems/1.8/gems/bundler-0.9.5/lib/bundler.rb:71:in require' from /Users/avlok/Code/polarvoice/config/application.rb:6 from /Users/avlok/Code/polarvoice/config/environment.rb:2:inrequire'
from /Users/avlok/Code/polarvoice/config/environment.rb:2
from /Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta/lib/rails/commands.rb:29:in require' from /Library/Ruby/Gems/1.8/gems/railties-3.0.0.beta/lib/rails/commands.rb:29 from /Users/avlok/Code/polarvoice/script/rails:10:inrequire'
from /Users/avlok/Code/polarvoice/script/rails:10

Any thoughts on why this is happening?

Owner

josevalim replied Jun 13, 2010

You need a more recent rails version. Please check the README and mailing lists.

Thanks for the suggestion. I went through the README and tried out the different versions of devise for rails 3.0.0 beta4 but no luck.
Will this only work on edge rails? Is there a version of devise that is compatible with rails 3.0.0 beta4 ?
Thanks in advance!

ah n/m .. i'm just slow today .. I see what the issue is :)

ah n/m .. i'm just slow today .. I see what the issue is :)

Please sign in to comment.