augustf / rails-fast-sessions

Automatically exported from code.google.com/p/rails-fast-sessions
0 stars 0 forks source link

It does not take in account value of ActiveRecord::Base.pluralize_table_names #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make sure you have disabled table names pluralization in environment.rb
(config.active_record.pluralize_table_names=false)
2. Generate migration and launch it. The plugin creates table with correct
singular name.
3. Launch ./script/server. It fails since it does not found
'fast_migrations' (notice the plurality) table in database.

What is the expected output? What do you see instead?

Expected it to launch and operate well with singularly named table.

What version of the product are you using? On what operating system?

1. Rails 2.1.2

Please provide any additional information below.

1. /lib/fast_sessions.rb would do something like the following around line #11:

@@table_name = @@table_name.singularize unless
ActiveRecord::Base.pluralize_table_names

Original issue reported on code.google.com by pavli...@gmail.com on 10 Sep 2009 at 10:03