Commits on Mar 13, 2017
  1. Merge branch 'kbogtob-master'

    committed Mar 13, 2017
  2. Merge pull request #154 from plicjo/master

    Fix Rspec/Rails deprecation warnings
    committed on GitHub Mar 13, 2017
  3. version update.

    committed Mar 13, 2017
Commits on Mar 8, 2017
  1. Make gem compatible with ActionController::API

    This changeset makes the gem compatible with ActionController::API as it is with ActionController::Base out of the box. 
    It makes the ActionController::API extends the controller extensions if it exists and it calls the ActionController::Base methods only if they are available.
    kbogtob committed Mar 8, 2017
Commits on Feb 16, 2017
Commits on Nov 21, 2016
  1. Merge pull request #150 from pedrofs/feature/global_records

    I like this implementation. Merged it (a bit late).
    committed on GitHub Nov 21, 2016
Commits on Sep 29, 2016
Commits on Sep 16, 2016
Commits on Aug 16, 2016
  1. update Travis script.

    committed Aug 16, 2016
Commits on Aug 14, 2016
  1. Removed mongoDB files.

    committed Aug 14, 2016
  2. Version bump to v0.4.0

    committed Aug 14, 2016
Commits on Mar 19, 2016
  1. Merge branch 'use-any-not-exists' of git://…

    …s_as_tenant into ludamillion-use-any-not-exists
    committed Mar 19, 2016
  2. Merge pull request #131 from duboff/md-unscoped

    Ability to disable tenant verification for a block
    committed Mar 19, 2016
Commits on Mar 18, 2016
Commits on Mar 14, 2016
  1. Fix Error When Validating `belong_to` Associations

    When reflecting on `belongs_to` associations in the validation steps
    (./lib/acts_as_tenant/model_extensions.rb:90) an undefined method error
    is thrown if the `association_class` is a class that returns an Array in
    response to the `#where` query.
    Use `#any?` instead of `#exists?` to perform this check.
    ludamillion committed Mar 11, 2016
Commits on Feb 23, 2016
  1. Merge pull request #132 from paulosoares86/master

    fixing directory name in
    committed Feb 23, 2016
  2. Merge pull request #134 from kochka/master

    Fix default empty scope for Rails < 4
    committed Feb 23, 2016
Commits on Feb 9, 2016
Commits on Oct 26, 2015
  1. Merge pull request #120 from lowjoel/allow-inverse-of

    Allow `inverse_of` to be used in the `acts_as_tenant` declaration.
    committed Oct 26, 2015
Commits on Jul 14, 2015
Commits on Jun 29, 2015
  1. Merge pull request #119 from MehdiK/private_set_current_tenant

    Makes set_current_tenant private to secure it.
    committed Jun 29, 2015
Commits on Jun 28, 2015
  1. Merge branch 'patch-1' of git:// i…

    …nto stgeneral-patch-1
    committed Jun 28, 2015
  2. Merge pull request #99 from iangreenleaf/default_tenant

    Default tenant accessor
    committed Jun 28, 2015
  3. Merge pull request #116 from calebthompson/set-tenant_id-as-string

    Setting tenant_id to a string might be okay
    committed Jun 28, 2015
Commits on Jun 10, 2015
  1. Update logic to use ActiveModel::Dirty

    We saw issues with checking #to_i on BSON::ObjectId for Mongo (and
    probably would have seen the same for uuids elsewhere). Leverage
    ActiveModel::Dirty to do our checking for us.
    calebthompson committed Jun 10, 2015
Commits on Jun 9, 2015
  1. Setting tenant_id to a string might be okay

    In Ruby, String#to_i returns an integer if the string begins with an
        2.2.2 :001 > "1-microsoft-way".to_i
         => 1
    Rails takes advantage of this behavior and does not bother converting
    fields such as `tenant_id` from String to Integer types. We should allow
    these values to be passed into the `"#{fkey}="` methods as well.
    P.S. There was no `integer` in scope on line 102. Tests are important
    calebthompson committed Jun 9, 2015
  2. Add missing test for setting tenant_id to same val

    This feature was added in
    but it looks like there wasn't an accompanying spec to cover the new
    Added the `require "yaml"` because I was getting a NameError; I guess
    rails/all didn't cover that for some reason.
    calebthompson committed Jun 9, 2015