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

Update upgrader #1558

Merged
merged 4 commits into from
Apr 2, 2019
Merged

Update upgrader #1558

merged 4 commits into from
Apr 2, 2019

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Apr 2, 2019

What is this pull request for?

Update the upgrader tasks and add an upgrader that replaces the local element variable in the element view partials with the elements partial_name and therefore follow Rails conventions.

Notable changes

  • Replace elements.published with elements.available in cell views
  • Capture all method calls in cell.elements replacement
  • Update regex of render_elements from_cell replacement for Ruby 1.8 Hash syntax
  • Make the upgrade todos more pleasent to read and use a more prominent layout.

lib/alchemy/upgrader/four_point_two.rb Outdated Show resolved Hide resolved
lib/alchemy/upgrader/four_point_one.rb Outdated Show resolved Hide resolved
tvdeyen added 4 commits April 2, 2019 11:18
- Replace `elements.published` with `elements.available` in cell views
- Capture all method calls in `cell.elements` replacement
- Update regex of `render_elements from_cell` replacement for Ruby 1.8 Hash syntax
Add task that updates the element view partials so they use the element's partial name as local variable name.
Make the changes more prominent
Make the upgrade todos more pleasent to read and use a more prominent layout.
@tvdeyen tvdeyen force-pushed the fix-cell-upgrader branch from 711c4cc to e5118a8 Compare April 2, 2019 09:25
@tvdeyen tvdeyen added this to the 4.2 milestone Apr 2, 2019
@tvdeyen tvdeyen merged commit 3891f86 into AlchemyCMS:master Apr 2, 2019
@tvdeyen tvdeyen deleted the fix-cell-upgrader branch April 2, 2019 10:12
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.

2 participants