Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jun 28, 2015
  1. Merge pull request #99 from iangreenleaf/default_tenant

    Default tenant accessor
Commits on Jun 9, 2015
  1. @calebthompson

    Setting tenant_id to a string might be okay

    calebthompson authored
    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
  2. @calebthompson

    Add missing test for setting tenant_id to same val

    calebthompson authored
    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.
Commits on Jan 7, 2015
  1. @iangreenleaf
  2. @iangreenleaf

    Run specs against Mongoid as well as ActiveRecord

    iangreenleaf authored
    Splits AR-specific setup out into conditionally-required files. Runs the
    same specs against both ORMs. Right now, that is controlled by an ENV var:
        $ ORM=active_record rake spec
        $ ORM=mongoid rake spec
  3. @iangreenleaf

    Reload project after changing current tenant

    iangreenleaf authored
    Mongoid needs a reload to properly filter its associations.
  4. @iangreenleaf

    Wrap spec actions properly

    iangreenleaf authored
    This prevents them from bleeding over into other specs.
  5. @iangreenleaf
Commits on Jan 4, 2015
  1. @iangreenleaf
  2. @iangreenleaf

    Default tenant accessor

    iangreenleaf authored
    Mostly for testing purposes, though could conceivably be used for other reasons.
Commits on Dec 19, 2014
  1. @iangreenleaf

    Only use ActiveRecord and ActionController if already present

    iangreenleaf authored
    Allows manual inclusion in non-standard Rails stacks, such as Mongoid.
Commits on Nov 11, 2014
  1. @pavloo


    pavloo authored
Commits on Jul 9, 2014
Commits on Jun 26, 2014
  1. @petergoldstein
Commits on Jun 25, 2014
  1. Merge pull request #77 from davekaro/master

    support sidekiq 3 interface
  2. Merge pull request #67 from preth00nker/master

    added set_current_tenant_by_subdomain_or_domain
Commits on May 31, 2014
  1. @davekaro

    support sidekiq 3 interface

    davekaro authored
Commits on May 13, 2014
  1. @preth00nker
Commits on Mar 31, 2014
  1. @jorgevaldivia
Commits on Jan 12, 2014
Commits on Jan 9, 2014
  1. @tmaier

    Fix specs

    tmaier authored
Commits on Jan 8, 2014
  1. @tmaier

    Add basic spec for Sidekiq middleware configruation

    tmaier authored
    We can only test for the client middleware
  2. @tmaier

    Add specs for sidekiq

    tmaier authored
Commits on Jan 7, 2014
  1. Bug fix to performance tweak.

Commits on Jan 5, 2014
Commits on Jan 4, 2014
Commits on Nov 15, 2013
  1. @hypomodern

    Allow tenant to be set if it is presently nil.

    hypomodern authored
    This is helpful, for instance, during a multi-step user/account registration process.
Commits on Jun 1, 2013
  1. @scottwillson

    Rails 4 compatibility. Remove return from before_validation proc to f…

    scottwillson authored
    …ix exception under Rails 4 head. Remove Rails 4.0.0.rc1 deprecation warnings.
Commits on Feb 21, 2013
Commits on Feb 11, 2013
Commits on Feb 10, 2013
  1. Merge branch 'with_tenant_returns_block_value' of git://…

    …urens/acts_as_tenant into laurens-with_tenant_returns_block_value
Commits on Feb 7, 2013
  1. @laurens
Something went wrong with that request. Please try again.