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

Remove enumerize #452

Merged
merged 2 commits into from
Mar 20, 2023
Merged

Remove enumerize #452

merged 2 commits into from
Mar 20, 2023

Conversation

gmq
Copy link
Member

@gmq gmq commented Mar 17, 2023

In Platanus we have transitioned to using the standard Rails enums, which means that we are unable to continue supporting enumerize in this gem.

lib/activeadmin_addons/addons/tag_builder.rb Outdated Show resolved Hide resolved
spec/dummy/app/models/invoice.rb Outdated Show resolved Hide resolved
Base automatically changed from remove-sprockets-support to master March 17, 2023 20:29
Copy link
Contributor

@difernandez difernandez left a comment

Choose a reason for hiding this comment

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

Couple small things, looks good!

Comment on lines 5 to 8
:enumerize
elsif rails_enum_attr?
@enum_attr = if rails_enum_attr?
:enum
end

raise "you need to pass an enumerize or enum attribute" unless @enum_attr
raise "you need to pass an enum attribute" unless @enum_attr
Copy link
Contributor

Choose a reason for hiding this comment

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

with the change in display_data, @enum_attr is no longer used. We could chage this to just:

raise "you need to pass an enum attribute" unless rails_enum_attr?

Copy link
Contributor

Choose a reason for hiding this comment

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

this whole file was for enumerize support, we should just delete it

@gmq gmq merged commit 6552c3f into master Mar 20, 2023
@gmq gmq deleted the remove-enumerize branch March 20, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants