I'm created model in app/models/request/book folder but Book::Request::Status.table_name returns table name "statuses" ("book_request_statuses" - is right table name). How I can get correct table name?
model location
model/ book/ request/ status.rb
model/book/request/status.rb
class Book::Request::Status < ActiveRecord::Base
...
end
config/application.rb
config.autoload_paths += Dir[Rails.root.join('app', 'models', '**', '*.rb')]
If I set self.table_name = "book_request_statuses" then the model will work correctly (in model), but it's not good way :).
sorry for my English is not good