Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Resolves #14] Add console info about tenants and fast switches #17

Merged
merged 5 commits into from
Mar 23, 2020

Conversation

rpbaltazar
Copy link
Contributor

  • Adds console methods for:
    • tenant_list - listing all tenants based on Apartment.tenant_names
    • st(tenant_name:String) - switch to tenant if it exists
  • Adds custom pry console that shows the current tenant name and rails env. Depends on pry-rails gem.

@rpbaltazar
Copy link
Contributor Author

rpbaltazar commented Mar 22, 2020

@rjayroach if you have some time, please take a quick look at this. I think this solves the issue and we don't need to release a separate gem only for this. If it becomes a more complex thing we can consider extract it to a separate gem.

The failing spec will be sorted out once I drop the support for rails 4.2 (#11)

@rpbaltazar rpbaltazar force-pushed the add-console-info-about-tenants-and-fast--14 branch from 9405769 to 98ec0f7 Compare March 22, 2020 16:23
@rpbaltazar rpbaltazar merged commit 88fcae8 into development Mar 23, 2020
@rpbaltazar rpbaltazar deleted the add-console-info-about-tenants-and-fast--14 branch March 23, 2020 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant