dougal / acts_as_indexed

Acts As Indexed is a plugin which provides a pain-free way to add fulltext search to your Ruby on Rails app
http://douglasfshearer.com/blog/rails-plugin-acts_as_indexed
MIT License
211 stars 49 forks source link

DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/thomas/ruby/hotaru/vendor/plugins/acts_as_indexed/rails/init.rb. (called from /Users/thomas/ruby/hotaru/config/environment.rb:4) #16

Closed fritzsche closed 13 years ago

fritzsche commented 13 years ago

I receive depreciation warning after install as plugin:

"DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/thomas/ruby/hotaru/vendor/plugins/acts_as_indexed/rails/init.rb. (called from /Users/thomas/ruby/hotaru/config/environment.rb:4)"

Moving the init.rb file out of the ruby folder (in the main folder of the plugin resolve the issue for me locally.

My environment is rails 3.0.10 ruby 1.9.2.

dougal commented 13 years ago

Rails 2.0.X requires that this file exists. Later versions do not.

It is very likely I will remove this soon, since Rails 2.0 came out some considerable time ago and people with actively developed apps are hopefully now on some later iteration of Rails.