README.rdoc in enumerate_it-0.7.11 vs README.rdoc in enumerate_it-0.7.12
- old
+ new
@@ -237,16 +237,20 @@
ActiveRecord::Base.send :include, EnumerateIt
* Add the 'enumerate_it' gem as a dependency in your environment.rb (Rails 2.3.x) or Gemfile (if you're using Bundler)
-An interesting approach to use it in Rails apps is to create an app/models/enumerations folder and add it to your autoload path in config/application.rb:
+An interesting approach to use it in Rails apps is to create an app/enumerations folder and add it to your autoload path in config/application.rb:
module YourApp
class Application < Rails::Application
- config.autoload_paths << "#{Rails.root}/app/models/enumerations"
+ config.autoload_paths << "#{Rails.root}/app/enumerations"
end
end
+
+There is also a Rails Generator that you can use to generate enumerations and their locale files. Take a look at how to use it running
+
+ rails generate enumerate_it --help
== Ruby 1.9
EnumerateIt is fully compatible with Ruby 1.9.1 and 1.9.2 (all tests pass)