Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Support for legacy stack #28

Closed
wants to merge 29 commits into from
Closed

Support for legacy stack #28

wants to merge 29 commits into from

Conversation

maeve
Copy link
Contributor

@maeve maeve commented Oct 23, 2017

We need to be able to support a specific stack in order to integrate with certain legacy apps:

  • ruby 1.9.3
  • rails 3.2
  • devise < 3.0

I made sure we have a complete build matrix for supported ruby/rails/devise combinations. For now, at least, we're able to accommodate them all with a single version of this gem.

https://www.pivotaltracker.com/story/show/150988086

@maeve maeve changed the title [WIP] Support for rails 3.x Support for legacy stack Dec 12, 2017
Copy link

@perryqh perryqh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@ryankbales ryankbales left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looked like a good time was had by all. Nice work Maeve.


ActiveRecord::Schema.define(version: 20140113233821) do
ActiveRecord::Schema.define(:version => 20140113233821) do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the switch to the hash rocket syntax?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because rails didn't introduce the new hash syntax in the schema generation until rails 4.1, but the dev environment is now using rails 3.2. I didn't add any migrations as part of this pull request, but I did have to run db:test:prepare, which dumps a new schema file in order to load it into the test db.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐺

Copy link
Member

@levibrown levibrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice Work

# rails 5 (which does not support *_filter callbacks)
set_callback :process_action, :before, :require_no_authentication,
if: ->(c) { [:new, :create].include?(c.action_name) },
prepend: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@maeve maeve closed this Mar 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants