lib/mongoid/tenant.rb in mongoid-tenant-0.0.8 vs lib/mongoid/tenant.rb in mongoid-tenant-0.0.9
- old
+ new
@@ -9,12 +9,12 @@
#
module Tenant
extend ActiveSupport::Concern
included do
- store_in database: lambda do
+ store_in database: lambda {
Thread.current[:tenancy] || raise('No tenancy set!')
- end
+ }
def tenancy
Thread.current[:tenancy]
end
end