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

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

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

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

    kbogtob committed Mar 8, 2017
    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.
Commits on Feb 16, 2017
Commits on Nov 21, 2016
  1. Merge pull request #150 from pedrofs/feature/global_records

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

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

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

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

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

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

    ludamillion committed Mar 11, 2016
    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.
Commits on Feb 23, 2016
  1. Merge pull request #132 from paulosoares86/master

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

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

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

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

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

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

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

    calebthompson committed Jun 10, 2015
    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.
Commits on Jun 9, 2015
  1. Setting tenant_id to a string might be okay

    calebthompson committed Jun 9, 2015
    In Ruby, String#to_i returns an integer if the string begins with an
    integer.
    
        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
    :D
  2. Add missing test for setting tenant_id to same val

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