- Changed the interface for passing in the current_tenant manually in the controller.
set_current_tenant_to
has been deprecated and replaced byset_current_tenant_through_filter
declaration and theset_current_tenant
method. See readme for details.
- Fixed a bug with resolving the tenant model name (thx devton!)
- Added support for using relations: User.create(:account => Account.first) now works, while it wouldn't before (thx bnmrrs)
- Added Rails 3.2 compatibility (thx nickveys!)
- Added correct handling of child models that do not have their parent set (foreign key == nil)
- Added support for models that declare a has_one relationships, these would error out in the previous versions.
- Enhancements
- Added support for aliased associations ( belongs_to :something, :class_name => 'SomethingElse'). In previous version these would raise an 'uninitialized constant' error.
- Initial release